]> source.dussan.org Git - redmine.git/commitdiff
Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.
authorGo MAEDA <maeda@farend.jp>
Tue, 4 Dec 2018 10:29:56 +0000 (10:29 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 4 Dec 2018 10:29:56 +0000 (10:29 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@17688 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/custom_field_test.rb

index b1d7f7ad7ff8b2e070cb6e602e9d3a491453d6a0..ab6e098870f4af0326fd307de8de976c83b5529a 100644 (file)
@@ -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