From 8a0a3bc8edacc0e265f9bb86d775da014fa767e9 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Thu, 6 Dec 2018 00:34:21 +0000 Subject: [PATCH] Current user should be nil to prevent ActiveJob::DeserializationError errors in tests. git-svn-id: http://svn.redmine.org/redmine/trunk@17689 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/issue_nested_set_test.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index f42fa4097..30aa2a097 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_test.rb @@ -24,6 +24,10 @@ class IssueNestedSetTest < ActiveSupport::TestCase :enumerations, :issues + def setup + User.current = nil + end + def test_new_record_is_leaf i = Issue.new assert i.leaf? -- 2.39.5