summaryrefslogtreecommitdiffstats
path: root/test/unit/issue_scopes_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/issue_scopes_test.rb')
-rw-r--r--test/unit/issue_scopes_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/issue_scopes_test.rb b/test/unit/issue_scopes_test.rb
index f8460b9e0..19253645f 100644
--- a/test/unit/issue_scopes_test.rb
+++ b/test/unit/issue_scopes_test.rb
@@ -26,6 +26,10 @@ class IssueScopesTest < ActiveSupport::TestCase
:issues,
:custom_fields, :custom_fields_projects, :custom_fields_trackers, :custom_values
+ def setup
+ User.current = nil
+ end
+
def test_cross_project_scope_without_project_should_return_all_issues
ids = Issue.cross_project_scope(nil).pluck(:id).sort
assert_equal Issue.pluck(:id).sort, ids