@@ -278,9 +278,12 module Redmine | |||
|
278 | 278 | end |
|
279 | 279 | |
|
280 | 280 | class HelperTest < ActionView::TestCase |
|
281 | include Redmine::I18n | |
|
282 | ||
|
281 | 283 | def setup |
|
282 | 284 | super |
|
283 | 285 | User.current = nil |
|
286 | ::I18n.locale = 'en' | |
|
284 | 287 | end |
|
285 | 288 | end |
|
286 | 289 |
@@ -19,7 +19,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class ActivitiesHelperTest < Redmine::HelperTest |
|
21 | 21 | include ActivitiesHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | |
|
24 | 23 | class MockEvent |
|
25 | 24 | attr_reader :event_datetime, :event_group, :name |
@@ -20,7 +20,6 | |||
|
20 | 20 | require File.expand_path('../../../test_helper', __FILE__) |
|
21 | 21 | |
|
22 | 22 | class ApplicationHelperTest < Redmine::HelperTest |
|
23 | include Redmine::I18n | |
|
24 | 23 | include ERB::Util |
|
25 | 24 | include Rails.application.routes.url_helpers |
|
26 | 25 |
@@ -20,7 +20,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
20 | 20 | class CustomFieldsHelperTest < Redmine::HelperTest |
|
21 | 21 | include ApplicationHelper |
|
22 | 22 | include CustomFieldsHelper |
|
23 | include Redmine::I18n | |
|
24 | 23 | include ERB::Util |
|
25 | 24 | |
|
26 | 25 | def test_format_boolean_value |
@@ -18,7 +18,6 | |||
|
18 | 18 | require File.expand_path('../../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class GroupsHelperTest < Redmine::HelperTest |
|
21 | include Redmine::I18n | |
|
22 | 21 | include ERB::Util |
|
23 | 22 | include GroupsHelper |
|
24 | 23 | include Rails.application.routes.url_helpers |
@@ -18,7 +18,6 | |||
|
18 | 18 | require File.expand_path('../../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class IssuesHelperTest < Redmine::HelperTest |
|
21 | include Redmine::I18n | |
|
22 | 21 | include IssuesHelper |
|
23 | 22 | include CustomFieldsHelper |
|
24 | 23 | include ERB::Util |
@@ -35,11 +34,6 class IssuesHelperTest < Redmine::HelperTest | |||
|
35 | 34 | :attachments, |
|
36 | 35 | :versions |
|
37 | 36 | |
|
38 | def setup | |
|
39 | super | |
|
40 | set_language_if_valid('en') | |
|
41 | end | |
|
42 | ||
|
43 | 37 | def test_issue_heading |
|
44 | 38 | assert_equal "Bug #1", issue_heading(Issue.find(1)) |
|
45 | 39 | end |
@@ -18,7 +18,6 | |||
|
18 | 18 | require File.expand_path('../../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class MembersHelperTest < Redmine::HelperTest |
|
21 | include Redmine::I18n | |
|
22 | 21 | include ERB::Util |
|
23 | 22 | include MembersHelper |
|
24 | 23 | include Rails.application.routes.url_helpers |
@@ -18,7 +18,6 | |||
|
18 | 18 | require File.expand_path('../../../test_helper', __FILE__) |
|
19 | 19 | |
|
20 | 20 | class MyHelperTest < Redmine::HelperTest |
|
21 | include Redmine::I18n | |
|
22 | 21 | include ERB::Util |
|
23 | 22 | include MyHelper |
|
24 | 23 |
@@ -20,7 +20,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
20 | 20 | class ProjectsHelperTest < Redmine::HelperTest |
|
21 | 21 | include ApplicationHelper |
|
22 | 22 | include ProjectsHelper |
|
23 | include Redmine::I18n | |
|
24 | 23 | include ERB::Util |
|
25 | 24 | include Rails.application.routes.url_helpers |
|
26 | 25 | |
@@ -33,11 +32,6 class ProjectsHelperTest < Redmine::HelperTest | |||
|
33 | 32 | :groups_users, |
|
34 | 33 | :enabled_modules |
|
35 | 34 | |
|
36 | def setup | |
|
37 | super | |
|
38 | set_language_if_valid('en') | |
|
39 | end | |
|
40 | ||
|
41 | 35 | def test_link_to_version_within_project |
|
42 | 36 | @project = Project.find(2) |
|
43 | 37 | User.current = User.find(1) |
@@ -19,7 +19,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class QueriesHelperTest < Redmine::HelperTest |
|
21 | 21 | include QueriesHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | |
|
24 | 23 | fixtures :projects, :enabled_modules, :users, :members, |
|
25 | 24 | :member_roles, :roles, :trackers, :issue_statuses, |
@@ -21,7 +21,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
21 | 21 | |
|
22 | 22 | class SearchHelperTest < Redmine::HelperTest |
|
23 | 23 | include SearchHelper |
|
24 | include Redmine::I18n | |
|
25 | 24 | include ERB::Util |
|
26 | 25 | |
|
27 | 26 | def test_highlight_single_token |
@@ -19,7 +19,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class SettingsHelperTest < Redmine::HelperTest |
|
21 | 21 | include SettingsHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | include ERB::Util |
|
24 | 23 | |
|
25 | 24 | def test_date_format_setting_options_should_include_human_readable_format |
@@ -19,7 +19,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class SortHelperTest < Redmine::HelperTest |
|
21 | 21 | include SortHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | include ERB::Util |
|
24 | 23 | |
|
25 | 24 | def setup |
@@ -19,7 +19,6 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class TimelogHelperTest < Redmine::HelperTest |
|
21 | 21 | include TimelogHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | include ActionView::Helpers::TextHelper |
|
24 | 23 | include ActionView::Helpers::DateHelper |
|
25 | 24 | include ERB::Util |
@@ -19,16 +19,10 require File.expand_path('../../../test_helper', __FILE__) | |||
|
19 | 19 | |
|
20 | 20 | class WatchersHelperTest < Redmine::HelperTest |
|
21 | 21 | include WatchersHelper |
|
22 | include Redmine::I18n | |
|
23 | 22 | include Rails.application.routes.url_helpers |
|
24 | 23 | |
|
25 | 24 | fixtures :users, :issues |
|
26 | 25 | |
|
27 | def setup | |
|
28 | super | |
|
29 | set_language_if_valid('en') | |
|
30 | end | |
|
31 | ||
|
32 | 26 | test '#watcher_link with a non-watched object' do |
|
33 | 27 | expected = link_to( |
|
34 | 28 | "Watch", |
General Comments 0
You need to be logged in to leave comments.
Login now