Commit 91ad7224 authored by jplang's avatar jplang

Reset current user before helpers tests.

git-svn-id: https://svn.redmine.org/redmine/trunk@16231 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 76a6908c
......@@ -278,7 +278,10 @@ module Redmine
end
class HelperTest < ActionView::TestCase
def setup
super
User.current = nil
end
end
class ControllerTest < ActionController::TestCase
......
......@@ -38,6 +38,7 @@ class ActivitiesHelperTest < Redmine::HelperTest
end
def setup
super
MockEvent.clear
end
......
......@@ -38,7 +38,6 @@ class IssuesHelperTest < Redmine::HelperTest
def setup
super
set_language_if_valid('en')
User.current = nil
end
def test_issue_heading
......
......@@ -36,7 +36,6 @@ class ProjectsHelperTest < Redmine::HelperTest
def setup
super
set_language_if_valid('en')
User.current = nil
end
def test_link_to_version_within_project
......
......@@ -23,6 +23,7 @@ class SortHelperTest < Redmine::HelperTest
include ERB::Util
def setup
super
@session = nil
@sort_param = nil
end
......
......@@ -32,10 +32,6 @@ class TimelogHelperTest < Redmine::HelperTest
:attachments,
:enumerations
def setup
super
end
def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
activities = activity_collection_for_select_options
assert activities.include?(["Design", 9])
......
......@@ -27,7 +27,6 @@ class WatchersHelperTest < Redmine::HelperTest
def setup
super
set_language_if_valid('en')
User.current = nil
end
test '#watcher_link with a non-watched object' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment