]> source.dussan.org Git - redmine.git/commitdiff
Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Nov 2018 19:24:30 +0000 (19:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 29 Nov 2018 19:24:30 +0000 (19:24 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17665 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/user_test.rb

index 95198c14858a3ed532b55541b8a3dd1d3ddf7bad..444e99effea2d70e3f72f1d84687b68ef1431ca4 100644 (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