diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-18 22:36:45 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2013-05-18 22:36:45 +0000 |
commit | 0c6e2feeaaccc6a8f4fdad0811fdcab2dd55a43b (patch) | |
tree | 88863240b94c33e763a81aabd9d60a31838cbc38 | |
parent | bd8b509986fa7aeffae58fe92e1626f650000f8f (diff) | |
download | redmine-0c6e2feeaaccc6a8f4fdad0811fdcab2dd55a43b.tar.gz redmine-0c6e2feeaaccc6a8f4fdad0811fdcab2dd55a43b.zip |
backout r11875 ApplicationHelperTest change
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11876 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 7 |
1 files changed, 3 insertions, 4 deletions
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/теÑ�Ñ‚' => '<a class="external" href="http://foo.bar/теÑ�Ñ‚">http://foo.bar/теÑ�Ñ‚</a>' + 'http://foo.bar/тест' => '<a class="external" href="http://foo.bar/тест">http://foo.bar/тест</a>' } to_test.each { |text, result| assert_equal "<p>#{result}</p>", 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 <a href="http://foo.bar/теÑ�Ñ‚" class="external">link</a>' + 'This is a "link":http://foo.bar/тест' => 'This is a <a href="http://foo.bar/тест" class="external">link</a>' } to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } end @@ -597,7 +596,7 @@ RAW '[[CookBook documentation#One-section]]' => '<a href="/projects/ecookbook/wiki/CookBook_documentation#One-section" class="wiki-page">CookBook documentation</a>', '[[Another page#anchor|Page]]' => '<a href="/projects/ecookbook/wiki/Another_page#anchor" class="wiki-page">Page</a>', # UTF8 anchor - '[[Another_page#ТеÑ�Ñ‚|ТеÑ�Ñ‚]]' => %|<a href="/projects/ecookbook/wiki/Another_page##{CGI.escape 'ТеÑ�Ñ‚'}" class="wiki-page">ТеÑ�Ñ‚</a>|, + '[[Another_page#Тест|Тест]]' => %|<a href="/projects/ecookbook/wiki/Another_page##{CGI.escape 'Тест'}" class="wiki-page">Тест</a>|, # page that doesn't exist '[[Unknown page]]' => '<a href="/projects/ecookbook/wiki/Unknown_page" class="wiki-page new">Unknown page</a>', '[[Unknown page|404]]' => '<a href="/projects/ecookbook/wiki/Unknown_page" class="wiki-page new">404</a>', |