diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index d2c17a115..ab52017ff 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -20,7 +20,6 @@ require File.expand_path('../../../test_helper', __FILE__) class ApplicationHelperTest < ActionView::TestCase - include Redmine::I18n include ERB::Util include Rails.application.routes.url_helpers @@ -97,7 +96,7 @@ class ApplicationHelperTest < ActionView::TestCase if 'ruby'.respond_to?(:encoding) def test_auto_links_with_non_ascii_characters to_test = { - 'http://foo.bar/теÑ�Ñ‚' => 'http://foo.bar/теÑ�Ñ‚' + 'http://foo.bar/тест' => 'http://foo.bar/тест' } to_test.each { |text, result| assert_equal "
#{result}
", textilizable(text) } end @@ -251,7 +250,7 @@ RAW if 'ruby'.respond_to?(:encoding) def test_textile_external_links_with_non_ascii_characters to_test = { - 'This is a "link":http://foo.bar/теÑ�Ñ‚' => 'This is a link' + 'This is a "link":http://foo.bar/тест' => 'This is a link' } to_test.each { |text, result| assert_equal "#{result}
", textilizable(text) } end @@ -597,7 +596,7 @@ RAW '[[CookBook documentation#One-section]]' => 'CookBook documentation', '[[Another page#anchor|Page]]' => 'Page', # UTF8 anchor - '[[Another_page#ТеÑ�Ñ‚|ТеÑ�Ñ‚]]' => %|ТеÑ�Ñ‚|, + '[[Another_page#Тест|Тест]]' => %|Тест|, # page that doesn't exist '[[Unknown page]]' => 'Unknown page', '[[Unknown page|404]]' => '404',