integration_test_helper.rb 489 B

1234567891011121314151617181920212223242526
  1. ENV['RAILS_ENV'] = 'test'
  2. require File.expand_path('../../config/environment', __FILE__)
  3. require 'rails/test_help'
  4. require 'cache'
  5. class ActiveSupport::TestCase
  6. # disable transactions
  7. #self.use_transactional_fixtures = false
  8. # clear cache
  9. Cache.clear
  10. # load seeds
  11. load "#{Rails.root}/db/seeds.rb"
  12. setup do
  13. # clear cache
  14. Cache.clear
  15. # set current user
  16. UserInfo.current_user_id = nil
  17. end
  18. # Add more helper methods to be used by all tests here...
  19. end