Rails 6.1: add header=present to csv tests (#29914, #32921).

Patch by Pavel Rosický.


git-svn-id: http://svn.redmine.org/redmine/trunk@20887 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Go MAEDA
2021-04-01 14:59:31 +00:00
parent 7de9711f25
commit f30c91341a
6 changed files with 24 additions and 24 deletions

View File

@@ -203,7 +203,7 @@ class ProjectsControllerTest < Redmine::ControllerTest
with_settings :date_format => '%m/%d/%Y' do
get :index, :params => {:format => 'csv'}
assert_response :success
assert_equal 'text/csv', response.media_type
assert_equal 'text/csv; header=present', response.media_type
end
end