Reset UserInfo.current_user_id for every test.
This commit is contained in:
parent
55b27c6863
commit
dfe8a89f53
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue