Project

General

Profile

Feature #36320 » 0003-Fix-for-https-github.com-rails-rails-pull-51625.patch

Takashi Kato, 2024-08-20 01:00

View differences:

config/environments/test.rb
77 77
  # config.action_view.annotate_rendered_view_with_filenames = true
78 78

  
79 79
  config.secret_key_base = 'a secret token for running the tests'
80

  
81
  config.active_support.assertionless_tests_behavior = :raise
80 82
end
test/helpers/application_helper_test.rb
21 21

  
22 22
class ApplicationHelperTest < Redmine::HelperTest
23 23
  include ERB::Util
24
  include Rails.application.routes.url_helpers
25 24
  include AvatarsHelper
26 25

  
27 26
  fixtures :projects, :enabled_modules,
test/helpers/avatars_helper_test.rb
21 21

  
22 22
class AvatarsHelperTest < Redmine::HelperTest
23 23
  include ERB::Util
24
  include Rails.application.routes.url_helpers
25 24
  include AvatarsHelper
26 25

  
27 26
  fixtures :users, :email_addresses
test/helpers/groups_helper_test.rb
23 23
  include ERB::Util
24 24
  include GroupsHelper
25 25
  include AvatarsHelper
26
  include Rails.application.routes.url_helpers
27 26

  
28 27
  fixtures :users
29 28

  
test/helpers/issues_helper_test.rb
23 23
  include IssuesHelper
24 24
  include CustomFieldsHelper
25 25
  include ERB::Util
26
  include Rails.application.routes.url_helpers
27 26

  
28 27
  fixtures :projects, :trackers, :issue_statuses, :issues,
29 28
           :enumerations, :users, :issue_categories,
test/helpers/members_helper_test.rb
23 23
  include ERB::Util
24 24
  include MembersHelper
25 25
  include AvatarsHelper
26
  include Rails.application.routes.url_helpers
27 26

  
28 27
  fixtures :projects, :users, :members, :member_roles,
29 28
           :trackers, :issue_statuses
test/helpers/projects_helper_test.rb
22 22
class ProjectsHelperTest < Redmine::HelperTest
23 23
  include ProjectsHelper
24 24
  include ERB::Util
25
  include Rails.application.routes.url_helpers
26 25

  
27 26
  fixtures :projects, :trackers, :issue_statuses, :issues,
28 27
           :enumerations, :users, :issue_categories,
test/helpers/reports_helper_test.rb
21 21

  
22 22
class ReportsHlperTest < Redmine::HelperTest
23 23
  include ReportsHelper
24
  include Rails.application.routes.url_helpers
25 24

  
26 25
  fixtures :projects, :users
27 26

  
test/helpers/routes_helper_test.rb
22 22
class RoutesHelperTest < Redmine::HelperTest
23 23
  fixtures :projects, :issues
24 24

  
25
  include Rails.application.routes.url_helpers
26

  
27 25
  def test_time_entries_path
28 26
    assert_equal '/projects/ecookbook/time_entries', _time_entries_path(Project.find(1), nil)
29 27
    assert_equal '/time_entries', _time_entries_path(nil, nil)
test/helpers/version_helper_test.rb
20 20
require_relative '../test_helper'
21 21

  
22 22
class VersionsHelperTest < Redmine::HelperTest
23
  include Rails.application.routes.url_helpers
24 23

  
25 24
  fixtures :projects, :versions, :enabled_modules,
26 25
           :users, :members, :roles, :member_roles,
test/helpers/watchers_helper_test.rb
23 23
  include WatchersHelper
24 24
  include AvatarsHelper
25 25
  include ERB::Util
26
  include Rails.application.routes.url_helpers
27 26

  
28 27
  fixtures :users, :issues
29 28

  
test/helpers/wiki_helper_test.rb
21 21

  
22 22
class WikiHelperTest < Redmine::HelperTest
23 23
  include WikiHelper
24
  include Rails.application.routes.url_helpers
25 24

  
26 25
  fixtures :projects, :users,
27 26
           :roles, :member_roles, :members,
test/unit/lib/redmine/helpers/gantt_test.rb
29 29
  include AvatarsHelper
30 30

  
31 31
  include ERB::Util
32
  include Rails.application.routes.url_helpers
33 32

  
34 33
  def setup
35 34
    setup_with_controller
test/unit/lib/redmine/menu_manager/menu_helper_test.rb
22 22
class Redmine::MenuManager::MenuHelperTest < Redmine::HelperTest
23 23
  include Redmine::MenuManager::MenuHelper
24 24
  include ERB::Util
25
  include Rails.application.routes.url_helpers
26 25

  
27 26
  fixtures :users, :members, :projects, :enabled_modules, :roles, :member_roles
28 27

  
test/unit/lib/redmine/views/labelled_form_builder_test.rb
20 20
require_relative '../../../../test_helper'
21 21

  
22 22
class Redmine::Views::LabelledFormBuilderTest < Redmine::HelperTest
23
  include Rails.application.routes.url_helpers
24 23

  
25 24
  def test_label_should_output_one_element
26 25
    set_language_if_valid 'en'
test/unit/lib/redmine/wiki_formatting/common_mark/application_helper_test.rb
23 23
  if Object.const_defined?(:CommonMarker)
24 24

  
25 25
    include ERB::Util
26
    include Rails.application.routes.url_helpers
27 26

  
28 27
    fixtures :projects, :enabled_modules,
29 28
             :users, :email_addresses,
test/unit/lib/redmine/wiki_formatting/macros_test.rb
23 23
  include ActionView::Helpers::TextHelper
24 24
  include ActionView::Helpers::SanitizeHelper
25 25
  include ERB::Util
26
  include Rails.application.routes.url_helpers
27 26
  extend ActionView::Helpers::SanitizeHelper::ClassMethods
28 27

  
29 28
  fixtures :projects, :roles, :enabled_modules, :users,
test/unit/search_test.rb
181 181
      r = Issue.search_results('ÖÖ')
182 182
      assert_include issue1, r
183 183
      assert_include issue2, r
184
    else
185
      skip
184 186
    end
185 187
  end
186 188

  
......
191 193
      r = Issue.search_results('ÖÖ')
192 194
      assert_include issue1, r
193 195
      assert_include issue2, r
196
    else
197
      skip
194 198
    end
195 199
  end
196 200

  
(11-11/13)