Peter Marklund

Peter Marklund's Home

Thu Jul 26 2007 09:50:07 GMT+0000 (Coordinated Universal Time)

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.