From 6309131c139044fd6d3bb1264cffdefbe28a307b Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 1 Dec 2018 11:25:30 +0000 Subject: [PATCH] Current user should be nil to prevent ActiveJob::DeserializationError errors in tests. git-svn-id: http://svn.redmine.org/redmine/trunk@17671 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/project_copy_test.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/project_copy_test.rb b/test/unit/project_copy_test.rb index 752e51b4c..efe3c6dde 100644 --- a/test/unit/project_copy_test.rb +++ b/test/unit/project_copy_test.rb @@ -39,6 +39,7 @@ class ProjectCopyTest < ActiveSupport::TestCase :documents def setup + User.current = nil ProjectCustomField.destroy_all @source_project = Project.find(2) @project = Project.new(:name => 'Copy Test', :identifier => 'copy-test') -- 2.39.5