Reset UserInfo.current_user_id for every test.

This commit is contained in:
Martin Edenhofer 2013-04-20 11:52:33 +02:00
parent 55b27c6863
commit dfe8a89f53

View file

@ -19,6 +19,13 @@ class ActiveSupport::TestCase
# load seeds # load seeds
load "#{Rails.root}/db/seeds.rb" load "#{Rails.root}/db/seeds.rb"
setup do
# set current user
puts 'reset UserInfo.current_user_id'
UserInfo.current_user_id = nil
end
# Add more helper methods to be used by all tests here... # Add more helper methods to be used by all tests here...
end end