diff options
author | Go MAEDA <maeda@farend.jp> | 2022-08-24 13:21:50 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2022-08-24 13:21:50 +0000 |
commit | f8033a069f99fd9947f05c2f4076bd8f0f575f98 (patch) | |
tree | 78d2330db21ecf052a618bf47324047183dc4fb6 /test/functional/timelog_controller_test.rb | |
parent | 35b2d6a244803a4f0a767a5ff5bcb9137a1d60c4 (diff) | |
download | redmine-f8033a069f99fd9947f05c2f4076bd8f0f575f98.tar.gz redmine-f8033a069f99fd9947f05c2f4076bd8f0f575f98.zip |
Use query name as the file name when exporting queries (#16207).
Patch by Mizuki ISHIKAWA.
git-svn-id: https://svn.redmine.org/redmine/trunk@21773 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_controller_test.rb')
-rw-r--r-- | test/functional/timelog_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb index deb75a5bb..d36279d13 100644 --- a/test/functional/timelog_controller_test.rb +++ b/test/functional/timelog_controller_test.rb @@ -1690,6 +1690,18 @@ class TimelogControllerTest < Redmine::ControllerTest end end + def test_index_csv_filename_query_name_param + get :index, :params => {:format => 'csv'} + assert_response :success + assert_match /timelog.csv/, @response.headers['Content-Disposition'] + end + + def test_index_csv_filename_with_query_name_param + get :index, :params => {:query_name => 'My Query Name', :format => 'csv'} + assert_response :success + assert_match /my_query_name\.csv/, @response.headers['Content-Disposition'] + end + def test_index_csv_should_fill_issue_column_with_tracker_id_and_subject issue = Issue.find(1) entry = TimeEntry.generate!(:issue => issue, :comments => "Issue column content test") |