ruby - NoMethodError: undefined method `ActiveSupport' in rails test file -


i upgraded ruby & rails today (2.2.0, 4.2.1).

in `app/test/models/user_test.rb'

require 'test_helper'  class usertest < activesupport:testcase     test 'the truth'       assert false     end end  

i ran rake db:test:prepare rake test.

rake aborted! nomethoderror: undefined method `activesupport' main:object /users/quantum/sonar/app/test/models/user_test.rb:3:in `<top (required)>' 

brand new rails project. missing?

app/test/testhelper:  env['rails_env'] ||= 'test' require file.expand_path('../../config/environment', __file__) require 'rails/test_help'  class activesupport::testcase   # setup fixtures in test/fixtures/*.yml tests in alphabetical order.   fixtures :all    # add more helper methods used tests here... end 

try command. hope helps.

rake db:migrate rails_env=test 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -