mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17665 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
b345aa7ad6
commit
1cadb28a6e
@ -34,6 +34,7 @@ class UserTest < ActiveSupport::TestCase
|
|||||||
@admin = User.find(1)
|
@admin = User.find(1)
|
||||||
@jsmith = User.find(2)
|
@jsmith = User.find(2)
|
||||||
@dlopper = User.find(3)
|
@dlopper = User.find(3)
|
||||||
|
User.current = nil
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_admin_scope_without_args_should_return_admin_users
|
def test_admin_scope_without_args_should_return_admin_users
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user