summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_controller_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-01 14:59:31 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-01 14:59:31 +0000
commitf30c91341aba5c4037de40d75bf8ecd42cb4b5cd (patch)
treeaf3d428f5710401d518a203c81259e31d8be50c1 /test/functional/timelog_controller_test.rb
parent7de9711f25b1c8abcdf2a154e3870dcc93b89989 (diff)
downloadredmine-f30c91341aba5c4037de40d75bf8ecd42cb4b5cd.tar.gz
redmine-f30c91341aba5c4037de40d75bf8ecd42cb4b5cd.zip
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
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r--test/functional/timelog_controller_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 1f7682737..b1a4899cc 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -1569,7 +1569,7 @@ class TimelogControllerTest < 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
@@ -1577,7 +1577,7 @@ class TimelogControllerTest < Redmine::ControllerTest
with_settings :date_format => '%m/%d/%Y' do
get :index, :params => {:project_id => 1, :format => 'csv'}
assert_response :success
- assert_equal 'text/csv', response.media_type
+ assert_equal 'text/csv; header=present', response.media_type
end
end