diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-12-16 17:23:31 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2018-12-16 17:23:31 +0000 |
commit | 2576292959f2fb7bf226f18e1903424e1c540930 (patch) | |
tree | 5f8ffdc38d08b23fb631a39174a95e9e15c57e78 /test/unit/issue_scopes_test.rb | |
parent | ba14bc48026901a658313f0901ec34b3e2fcb77b (diff) | |
download | redmine-2576292959f2fb7bf226f18e1903424e1c540930.tar.gz redmine-2576292959f2fb7bf226f18e1903424e1c540930.zip |
Set User.current to nil before unit tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@17761 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/issue_scopes_test.rb')
-rw-r--r-- | test/unit/issue_scopes_test.rb | 4 |
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 |