From 9d747d6811ed8716d2ff157e5fc3564946ae2ec5 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 19 Jan 2017 23:22:26 +0000 Subject: Reset current user before helpers tests. git-svn-id: http://svn.redmine.org/redmine/trunk@16231 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/test_helper.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test/test_helper.rb') 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 -- cgit v1.2.3