1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-08 16:41:31 +00:00

Current user should be nil to prevent ActiveJob::DeserializationError errors in tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@17679 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2018-12-02 07:54:49 +00:00
parent 8dd6874a6a
commit 0e9837e4d1

View File

@ -23,6 +23,10 @@ class PrincipalTest < ActiveSupport::TestCase
fixtures :users, :projects, :members, :member_roles, :roles,
:email_addresses
def setup
User.current = nil
end
def test_active_scope_should_return_groups_and_active_users
result = Principal.active.to_a
assert_include Group.first, result