# Error on using require 'unittests/setup'

**URL:** <https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187>\
**Category:** Ruby\
**Created:** [December 14, 2009, 10:09am UTC](https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187 "2009-12-14T10:09:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![puneet\_pandey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@puneet\_pandey](https://www.ruby-forum.com/u/puneet_pandey)\
**Post date:** [December 14, 2009, 10:09am UTC](https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187/1 "2009-12-14T10:09:27Z")

</div>

I have a Test file with fallowing required items

require ‘test/unit’  
require ‘unittests/setup’  
require ‘watir’  
require ‘watir/WindowHelper’  
…  
…  
…  
…  
.

when i run this file i got the error  
C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
`gem_original_require': no such file to load -- unittests/setup (LoadError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
from IE\_Test.rb:2

I have attached custom\_require.rb with this post.

what could be the solution for this error.

Regards,  
puneet.

---

<div class="post-metadata">

**Author:** ![puneet\_pandey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/0ea827/32.png) [@puneet\_pandey](https://www.ruby-forum.com/u/puneet_pandey)\
**Post date:** [December 14, 2009, 10:46am UTC](https://www.ruby-forum.com/t/error-on-using-require-unittests-setup/180187/2 "2009-12-14T10:46:18Z")

</div>

Puneet Pattar wrote:

> require ‘unittests/setup’

(Notice that’s line 2 of your script)

> when i run this file i got the error  
> C:/Ruby/lib/ruby/site\_ruby/1.8/rubygems/custom\_require.rb:31:in  
> `gem_original_require': no such file to load -- unittests/setup (LoadError) from C:/Ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in`require’  
> from IE\_Test.rb:2

Apart from the rubygems noise, that error is fairly clear. Line 2 of  
your program has an error. You are executing

require ‘unittests/setup’

and no such library was found on your system. That’s what “no such file  
to load – unittests/setup (LoadError)” means.

> what could be the solution for this error.

If ‘unittests/setup’ is a third-party library (I’ve never heard of it),  
then you need to install it.

If ‘unittests/setup’ is your own code, then ensure that you have set up  
Ruby’s $LOAD\_PATH (or $:) so that it can be found.
