mirror of
https://github.com/redmine/redmine.git
synced 2025-11-13 16:56:00 +01:00
Reset current user before helpers tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@16231 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -278,7 +278,10 @@ module Redmine
|
|||||||
end
|
end
|
||||||
|
|
||||||
class HelperTest < ActionView::TestCase
|
class HelperTest < ActionView::TestCase
|
||||||
|
def setup
|
||||||
|
super
|
||||||
|
User.current = nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class ControllerTest < ActionController::TestCase
|
class ControllerTest < ActionController::TestCase
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ class ActivitiesHelperTest < Redmine::HelperTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
MockEvent.clear
|
MockEvent.clear
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,6 @@ class IssuesHelperTest < Redmine::HelperTest
|
|||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
set_language_if_valid('en')
|
set_language_if_valid('en')
|
||||||
User.current = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_issue_heading
|
def test_issue_heading
|
||||||
|
|||||||
@@ -36,7 +36,6 @@ class ProjectsHelperTest < Redmine::HelperTest
|
|||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
set_language_if_valid('en')
|
set_language_if_valid('en')
|
||||||
User.current = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_link_to_version_within_project
|
def test_link_to_version_within_project
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ class SortHelperTest < Redmine::HelperTest
|
|||||||
include ERB::Util
|
include ERB::Util
|
||||||
|
|
||||||
def setup
|
def setup
|
||||||
|
super
|
||||||
@session = nil
|
@session = nil
|
||||||
@sort_param = nil
|
@sort_param = nil
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -32,10 +32,6 @@ class TimelogHelperTest < Redmine::HelperTest
|
|||||||
:attachments,
|
:attachments,
|
||||||
:enumerations
|
:enumerations
|
||||||
|
|
||||||
def setup
|
|
||||||
super
|
|
||||||
end
|
|
||||||
|
|
||||||
def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
|
def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
|
||||||
activities = activity_collection_for_select_options
|
activities = activity_collection_for_select_options
|
||||||
assert activities.include?(["Design", 9])
|
assert activities.include?(["Design", 9])
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ class WatchersHelperTest < Redmine::HelperTest
|
|||||||
def setup
|
def setup
|
||||||
super
|
super
|
||||||
set_language_if_valid('en')
|
set_language_if_valid('en')
|
||||||
User.current = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
test '#watcher_link with a non-watched object' do
|
test '#watcher_link with a non-watched object' do
|
||||||
|
|||||||
Reference in New Issue
Block a user