summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-12-04 10:29:56 +0000
committerGo MAEDA <maeda@farend.jp>2018-12-04 10:29:56 +0000
commit91f788854d7c576e08c88d7c018f18c18ec60495 (patch)
tree5d1be1e98e1e9f28c2b5c4806b678005f6f0a995 /test
parentc9cf695ad7631813771e6107c1a373db9727a632 (diff)
downloadredmine-91f788854d7c576e08c88d7c018f18c18ec60495.tar.gz
redmine-91f788854d7c576e08c88d7c018f18c18ec60495.zip
Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17688 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/unit/custom_field_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb
index b1d7f7ad7..ab6e09887 100644
--- a/test/unit/custom_field_test.rb
+++ b/test/unit/custom_field_test.rb
@@ -22,6 +22,10 @@ class CustomFieldTest < ActiveSupport::TestCase
:trackers, :issue_statuses,
:issues
+ def setup
+ User.current = nil
+ end
+
def test_create
field = UserCustomField.new(:name => 'Money money money', :field_format => 'float')
assert field.save