Turns out it was happening when rpsec-rails was being loaded.
Conditional loading for the test environment solved this:
config.gem ''rspec-rails'', :lib =>
''spec/rails'', :version => ''1.1.11''
if RAILS_ENV == ''test''
On Dec 10, 8:39 am, Nik B
<nikbau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> I think RAILS_ENV is getting set incorrectly, but I don''t know
exactly
> how to find out where.
>
> At the bottom of Rails::Initializer.run do |config| in environment.rb,
> RAILS_ENV is the correct value (staging, development, production,
> etc).
>
> Just below the initializer block, RAILS_ENV has changed to
''test''.
>
> Any ideas?
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---