attachment: add missing diff type at functional tests (#2371, #9612)

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7885 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-11-22 00:08:02 +00:00
parent a130359856
commit 8a8162c743
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ class AttachmentsControllerTest < ActionController::TestCase
with_settings :repositories_encodings => 'UTF-8' do with_settings :repositories_encodings => 'UTF-8' do
['inline', 'sbs'].each do |dt| ['inline', 'sbs'].each do |dt|
# 060719210727_changeset_iso8859-1.diff # 060719210727_changeset_iso8859-1.diff
get :show, :id => 5 get :show, :id => 5, :type => dt
assert_response :success assert_response :success
assert_template 'diff' assert_template 'diff'
assert_equal 'text/html', @response.content_type assert_equal 'text/html', @response.content_type
@ -74,7 +74,7 @@ class AttachmentsControllerTest < ActionController::TestCase
with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do with_settings :repositories_encodings => 'UTF-8,ISO-8859-1' do
['inline', 'sbs'].each do |dt| ['inline', 'sbs'].each do |dt|
# 060719210727_changeset_iso8859-1.diff # 060719210727_changeset_iso8859-1.diff
get :show, :id => 5 get :show, :id => 5, :type => dt
assert_response :success assert_response :success
assert_template 'diff' assert_template 'diff'
assert_equal 'text/html', @response.content_type assert_equal 'text/html', @response.content_type