]> 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>
Sat, 1 Dec 2018 11:25:30 +0000 (11:25 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Dec 2018 11:25:30 +0000 (11:25 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17671 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/project_copy_test.rb

index 752e51b4cd4510d7e6e4e6a7437bbd59c69a178f..efe3c6dde7bd834a1684c07bfd75491090b6d383 100644 (file)
@@ -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')