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
This commit is contained in:
parent
668184e520
commit
617cb8d270
|
@ -72,18 +72,19 @@ class AttachmentsControllerTest < ActionController::TestCase
|
||||||
|
|
||||||
def test_show_diff_latin_1
|
def test_show_diff_latin_1
|
||||||
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
|
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
|
||||||
# 060719210727_changeset_iso8859-1.diff
|
['inline', 'sbs'].each do |dt|
|
||||||
get :show, :id => 5
|
# 060719210727_changeset_iso8859-1.diff
|
||||||
assert_response :success
|
get :show, :id => 5
|
||||||
assert_template 'diff'
|
assert_response :success
|
||||||
assert_equal 'text/html', @response.content_type
|
assert_template 'diff'
|
||||||
|
assert_equal 'text/html', @response.content_type
|
||||||
assert_tag 'th',
|
assert_tag 'th',
|
||||||
:attributes => {:class => "filename"},
|
:attributes => {:class => "filename"},
|
||||||
:content => /issues_controller.rb\t\(révision 1484\)/
|
:content => /issues_controller.rb\t\(révision 1484\)/
|
||||||
assert_tag 'td',
|
assert_tag 'td',
|
||||||
:attributes => {:class => /line-code/},
|
:attributes => {:class => /line-code/},
|
||||||
:content => /Demande créée avec succès/
|
:content => /Demande créée avec succès/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue