uninitialized constant Rails in Tests only

Arthur Ccube
Wed, 02 Dec 2009 15:34:01 -0000

Hi Guys,

I can start my server in development mode.

However, when I run rake test. I have the following errors:

config/environment.rb:4: uninitialized constant Rails (NameError)
	from ./test/unit/../test_helper.rb:2:in `require''
	from ./test/unit/../test_helper.rb:2
	from test/unit/course_test.rb:1:in `require''
	from test/unit/course_test.rb:1

Line 4 of environment.rb:
Rails::VERSION::STRING >= ''2.3.4'' unless defined?
Rails::VERSION::STRING


Line 2 of test_helper.rb
require File.expand_path(File.dirname(__FILE__) + "/../config/
environment")



How can I solve it?

Thanks,
Arthur

--

You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at