diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-20 11:47:19 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-20 11:47:19 +0000 |
commit | c6191cdc82cd0b74860ba7f6b3d6d32b77439548 (patch) | |
tree | 99ad21ea27a74ee9e9914eff323d1234a8734cbc | |
parent | 77710ece26d8503e365a5211b010eb9be81c1c99 (diff) | |
download | redmine-c6191cdc82cd0b74860ba7f6b3d6d32b77439548.tar.gz redmine-c6191cdc82cd0b74860ba7f6b3d6d32b77439548.zip |
attachment: add a functional test to show an ISO-8859-1 patch (#2371)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7867 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/attachments_controller_test.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 879f6edca..1e8376ad4 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -70,6 +70,23 @@ class AttachmentsControllerTest < ActionController::TestCase end end + def test_show_diff_latin_1 + with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do + # 060719210727_changeset_iso8859-1.diff + get :show, :id => 5 + assert_response :success + assert_template 'diff' + assert_equal 'text/html', @response.content_type + + assert_tag 'th', + :attributes => {:class => "filename"}, + :content => /issues_controller.rb\t\(révision 1484\)/ + assert_tag 'td', + :attributes => {:class => /line-code/}, + :content => /Demande créée avec succès/ + end + end + def test_show_text_file get :show, :id => 4 assert_response :success |