diff options
author | Go MAEDA <maeda@farend.jp> | 2018-12-06 00:34:21 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2018-12-06 00:34:21 +0000 |
commit | 8a0a3bc8edacc0e265f9bb86d775da014fa767e9 (patch) | |
tree | c207063bc1209d33123b67d608922b6f41d6376a /test | |
parent | 91f788854d7c576e08c88d7c018f18c18ec60495 (diff) | |
download | redmine-8a0a3bc8edacc0e265f9bb86d775da014fa767e9.tar.gz redmine-8a0a3bc8edacc0e265f9bb86d775da014fa767e9.zip |
Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17689 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/issue_nested_set_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb index f42fa4097..30aa2a097 100644 --- a/test/unit/issue_nested_set_test.rb +++ b/test/unit/issue_nested_set_test.rb @@ -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? |