diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 19:24:30 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-11-29 19:24:30 +0000 |
commit | 1cadb28a6e1de597b24b6e9d12ea5b1095b45b1e (patch) | |
tree | e4ff3b1c4d9952fe19a8acae72f65867de41d015 /test/unit/user_test.rb | |
parent | b345aa7ad63d57410884b381b7f44c7696f564b0 (diff) | |
download | redmine-1cadb28a6e1de597b24b6e9d12ea5b1095b45b1e.tar.gz redmine-1cadb28a6e1de597b24b6e9d12ea5b1095b45b1e.zip |
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
Diffstat (limited to 'test/unit/user_test.rb')
-rw-r--r-- | test/unit/user_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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 |