mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-21 07:51:12 +00:00
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
This commit is contained in:
parent
91f788854d
commit
8a0a3bc8ed
@ -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?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user