Page 295 adding test/test_helper.rb causes nothing to work
Exception is:
NameError (uninitialized constant Test):
app/helpers/test_helper.rb:4:in `<top (required)>'
app/controllers/application_controller.rb:2:in `<class:ApplicationController>'
app/controllers/application_controller.rb:1:in `<top (required)>'
app/controllers/stories_controller.rb:1:in `<top (required)>'
My test_helper looks like:
Code Ruby:ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'test_help' class Test::Unit::TestCase self.use_transactional_fixtures = true self.use_instantiated_fixtures = false fixtures :all def get_with_user(action, parameters = nil, session = nil, flash = nil) get action, parameters, :user_id => users(:patrick).id end def post_with_user(action, parameters = nil, session = nil, flash = nil) post action, parameters, :user_id => users(:patrick).id end end
I have modified the line so it finds environment but that just causes another error.
Thanks for any help anyone might have. I hate feeling so helpless!






Bookmarks