From 1cadb28a6e1de597b24b6e9d12ea5b1095b45b1e Mon Sep 17 00:00:00 2001
From: Jean-Philippe Lang <jp_lang@yahoo.fr>
Date: Thu, 29 Nov 2018 19:24:30 +0000
Subject: 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
---
 test/unit/user_test.rb | 1 +
 1 file changed, 1 insertion(+)

(limited to 'test/unit')

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
-- 
cgit v1.2.3