[rspec-users] rake spec loads development environment
lists at ruby-forum.com
Mon Mar 21 14:04:44 EDT 2011
This thread has been dead for awhile, but I'm having the same issue. I
don't have a bash variable set. I'm also having this issue with
Cucumber. It always runs in development mode.
If I put "p Rails.env" in spec_helper.rb:8 (after spec_helper already
declares ENV["RAILS_ENV"] ||= "test") and run "rake spec" it outputs
"development" every time. If I run "spec spec/*/**" it outputs "test"
like it should.
Posted via http://www.ruby-forum.com/.
More information about the rspec-users