trabajo-afectivo/test/integration_test_helper.rb

27 lines
530 B
Ruby
Raw Normal View History

2014-11-14 06:42:39 +00:00
ENV["RAILS_ENV"] = "test"
require File.expand_path('../../config/environment', __FILE__)
require 'rails/test_help'
require 'cache'
class ActiveSupport::TestCase
# disable transactions
#self.use_transactional_fixtures = false
# clear cache
Cache.clear
# load seeds
load "#{Rails.root}/db/seeds.rb"
setup do
2015-02-25 23:44:29 +00:00
# clear cache
Cache.clear
2014-11-14 06:42:39 +00:00
# set current user
2014-12-01 12:06:15 +00:00
puts 'reset UserInfo.current_user_id'
UserInfo.current_user_id = nil
2014-11-14 06:42:39 +00:00
end
# Add more helper methods to be used by all tests here...
2015-02-25 23:44:29 +00:00
end