I use rails (3.0.4)and rspec-rails (2.5.0). When I runrails rspec the generate: the install it producesspec_helper.rb`, which contains this line:
ENV["RAILS_ENV"] ||= 'test'
When I run rake spec, I get this warning in the terminal:
DEPRECATION WARNING: RAILS_ENV is deprecated. Please use ::Rails.env.
This is not so annoying, as it is done only once inside mine Spork.prefork, but I would like, if possible, to overcome this condemnation. I am new to Rails and have not mentioned this in rspec-rails problems or anywhere else.
source
share