diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-20 13:35:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-20 13:35:33 +0000 |
commit | d4915f0635d8c229f225e3e8927099316a4a1a1d (patch) | |
tree | 2aeb20c9e25888b0f7c830367a17dca0ef40c795 /test/unit/query_test.rb | |
parent | 717f491f503d214b639f5b98e497e4189fc34902 (diff) | |
download | redmine-d4915f0635d8c229f225e3e8927099316a4a1a1d.tar.gz redmine-d4915f0635d8c229f225e3e8927099316a4a1a1d.zip |
Reset current user on each test.
git-svn-id: http://svn.redmine.org/redmine/trunk@13771 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/query_test.rb')
-rw-r--r-- | test/unit/query_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb index 35b2f21fb..ebe33aa1f 100644 --- a/test/unit/query_test.rb +++ b/test/unit/query_test.rb @@ -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) |