integration_test_helper.rb 530 B

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