##// END OF EJS Templates
Reset current user before helpers tests....
Jean-Philippe Lang -
r15849:9d747d6811ed
parent child
Show More
@@ -278,7 +278,10 module Redmine
278 end
278 end
279
279
280 class HelperTest < ActionView::TestCase
280 class HelperTest < ActionView::TestCase
281
281 def setup
282 super
283 User.current = nil
284 end
282 end
285 end
283
286
284 class ControllerTest < ActionController::TestCase
287 class ControllerTest < ActionController::TestCase
@@ -38,6 +38,7 class ActivitiesHelperTest < Redmine::HelperTest
38 end
38 end
39
39
40 def setup
40 def setup
41 super
41 MockEvent.clear
42 MockEvent.clear
42 end
43 end
43
44
@@ -38,7 +38,6 class IssuesHelperTest < Redmine::HelperTest
38 def setup
38 def setup
39 super
39 super
40 set_language_if_valid('en')
40 set_language_if_valid('en')
41 User.current = nil
42 end
41 end
43
42
44 def test_issue_heading
43 def test_issue_heading
@@ -36,7 +36,6 class ProjectsHelperTest < Redmine::HelperTest
36 def setup
36 def setup
37 super
37 super
38 set_language_if_valid('en')
38 set_language_if_valid('en')
39 User.current = nil
40 end
39 end
41
40
42 def test_link_to_version_within_project
41 def test_link_to_version_within_project
@@ -23,6 +23,7 class SortHelperTest < Redmine::HelperTest
23 include ERB::Util
23 include ERB::Util
24
24
25 def setup
25 def setup
26 super
26 @session = nil
27 @session = nil
27 @sort_param = nil
28 @sort_param = nil
28 end
29 end
@@ -32,10 +32,6 class TimelogHelperTest < Redmine::HelperTest
32 :attachments,
32 :attachments,
33 :enumerations
33 :enumerations
34
34
35 def setup
36 super
37 end
38
39 def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
35 def test_activities_collection_for_select_options_should_return_array_of_activity_names_and_ids
40 activities = activity_collection_for_select_options
36 activities = activity_collection_for_select_options
41 assert activities.include?(["Design", 9])
37 assert activities.include?(["Design", 9])
@@ -27,7 +27,6 class WatchersHelperTest < Redmine::HelperTest
27 def setup
27 def setup
28 super
28 super
29 set_language_if_valid('en')
29 set_language_if_valid('en')
30 User.current = nil
31 end
30 end
32
31
33 test '#watcher_link with a non-watched object' do
32 test '#watcher_link with a non-watched object' do
General Comments 0
You need to be logged in to leave comments. Login now