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:
Jean-Philippe Lang
2018-11-29 19:24:30 +00:00
parent b345aa7ad6
commit 1cadb28a6e

View File

@@ -34,6 +34,7 @@ class UserTest < ActiveSupport::TestCase
@admin = User.find(1)
@jsmith = User.find(2)
@dlopper = User.find(3)
User.current = nil
end
def test_admin_scope_without_args_should_return_admin_users