summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-19 23:22:26 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2017-01-19 23:22:26 +0000
commit9d747d6811ed8716d2ff157e5fc3564946ae2ec5 (patch)
treed4d8bf9223467a2d79d665cbd9fc8d13865c5132 /test/test_helper.rb
parent4ac9dc3075a3daa7e52700899b52d23db01915ce (diff)
downloadredmine-9d747d6811ed8716d2ff157e5fc3564946ae2ec5.tar.gz
redmine-9d747d6811ed8716d2ff157e5fc3564946ae2ec5.zip
Reset current user before helpers tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16231 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb
index 1ab7e9e03..11bd52c83 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -278,7 +278,10 @@ module Redmine
end
class HelperTest < ActionView::TestCase
-
+ def setup
+ super
+ User.current = nil
+ end
end
class ControllerTest < ActionController::TestCase