From: Jean-Philippe Lang Date: Thu, 29 Nov 2018 19:24:30 +0000 (+0000) Subject: Current user should be nil to prevent ActiveJob::DeserializationError errors in tests. X-Git-Tag: 4.0.0~38 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1cadb28a6e1de597b24b6e9d12ea5b1095b45b1e;p=redmine.git 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 --- diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb index 95198c148..444e99eff 100644 --- a/test/unit/user_test.rb +++ b/test/unit/user_test.rb @@ -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