summaryrefslogtreecommitdiffstats
path: root/test/functional/attachments_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 12:17:08 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-11-20 12:17:08 +0000
commit617cb8d270acdf78f2c0c144d89668cd28750691 (patch)
treee8a4a4368d38f8972f65c0965c346e3c70e2d6c3 /test/functional/attachments_controller_test.rb
parent668184e520873a1c8a53a21d015a110f36c3872a (diff)
downloadredmine-617cb8d270acdf78f2c0c144d89668cd28750691.tar.gz
redmine-617cb8d270acdf78f2c0c144d89668cd28750691.zip
attachment: update a functional test to switch "side by side" and "inline" for ISO-8859-1 patches (#2371, #9612)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7873 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r--test/functional/attachments_controller_test.rb25
1 files changed, 13 insertions, 12 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index cdab931be..bc34ac218 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -72,18 +72,19 @@ class AttachmentsControllerTest < ActionController::TestCase
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/
+ ['inline', 'sbs'].each do |dt|
+ # 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
end