From: Jean-Philippe Lang Date: Sat, 1 Dec 2018 11:25:30 +0000 (+0000) Subject: Current user should be nil to prevent ActiveJob::DeserializationError errors in tests. X-Git-Tag: 4.0.0~32 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6309131c139044fd6d3bb1264cffdefbe28a307b;p=redmine.git 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 --- 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')