1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-30 12:19:38 +00:00

Reset current user on each test.

git-svn-id: http://svn.redmine.org/redmine/trunk@13771 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-12-20 13:35:33 +00:00
parent 717f491f50
commit d4915f0635

View File

@ -29,6 +29,10 @@ class QueryTest < ActiveSupport::TestCase
:custom_fields_trackers,
:workflows
def setup
User.current = nil
end
def test_query_with_roles_visibility_should_validate_roles
set_language_if_valid 'en'
query = IssueQuery.new(:name => 'Query', :visibility => IssueQuery::VISIBILITY_ROLES)