summaryrefslogtreecommitdiffstats
path: root/test/unit/role_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-05 07:00:36 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-05 07:00:36 +0000
commitbc4cc0a14a21ee05ab38e240559f1601dba90381 (patch)
treebf395c2addb551d107de36ab38e972c318f0f5e1 /test/unit/role_test.rb
parenta14ff53ee5b6be2727998786832e93ced15f8a6d (diff)
downloadredmine-bc4cc0a14a21ee05ab38e240559f1601dba90381.tar.gz
redmine-bc4cc0a14a21ee05ab38e240559f1601dba90381.zip
Merged r17761 from trunk to 3.4-stable (#32022).
git-svn-id: http://svn.redmine.org/redmine/branches/3.4-stable@18433 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/role_test.rb')
-rw-r--r--test/unit/role_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index d24010ea4..ff723a347 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -20,6 +20,10 @@ require File.expand_path('../../test_helper', __FILE__)
class RoleTest < ActiveSupport::TestCase
fixtures :roles, :workflows, :trackers
+ def setup
+ User.current = nil
+ end
+
def test_sorted_scope
assert_equal Role.all.sort, Role.sorted.to_a
end