Peter Marklund

Peter Marklund's Home

Thu July 26, 2007
Programming

RSpec RAILS_ENV Gotcha

I've had issues with RSpec running in both development and production environment which certainly isn't what I want and it seems others have had the same issue. The resolution is simple, force RAILS_ENV to be set to "test" in your spec/spec_helper.rb file.

Comments

Peter Marklund said over 6 years ago:

According to David Chelimsky, this issue is fixed on trunk and will be in the 1.0.6 release. That's good news.

--------------------------------------------------------------------------------