summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-01 11:25:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2018-12-01 11:25:30 +0000
commit6309131c139044fd6d3bb1264cffdefbe28a307b (patch)
tree1aab710c06d15591187cb173c2ff8c7c4da94a73 /test
parentf0050f04b12cb071fdf94c2680b1b262d3cd4e16 (diff)
downloadredmine-6309131c139044fd6d3bb1264cffdefbe28a307b.tar.gz
redmine-6309131c139044fd6d3bb1264cffdefbe28a307b.zip
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
Diffstat (limited to 'test')
-rw-r--r--test/unit/project_copy_test.rb1
1 files changed, 1 insertions, 0 deletions
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')