[rspec-users] first try to make a controller test with RSpe

Joseph Wilk lists at ruby-forum.com
Wed Aug 13 15:18:13 EDT 2008


Hello,

Try including your rails config/environment.rb file in your spec_helper:

spec_helper.rb
----
ENV["RAILS_ENV"] = "test"
require "/../config/environment"
----

--
Joseph Wilk
http://www.joesniff.co.uk
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list