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

test/unit/issue_nested_set_test.rb

index f42fa4097d226e0c977d0c9c7714aee3b971c604..30aa2a0978095fac21da78b07309cd97d0bada2f 100644 (file)
@@ -24,6 +24,10 @@ class IssueNestedSetTest < ActiveSupport::TestCase
            :enumerations,
            :issues
 
+  def setup
+    User.current = nil
+  end
+
   def test_new_record_is_leaf
     i = Issue.new
     assert i.leaf?