diff options
author | Go MAEDA <maeda@farend.jp> | 2020-03-04 07:10:07 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-03-04 07:10:07 +0000 |
commit | 555a2d31169bb512f1c5bde5c4f347dc227ff128 (patch) | |
tree | 13bd25e1f9bf5f5cb5fe710142a7b1047f3562c3 /test | |
parent | 907e0173e40b31d8d0e696b15b18777af98ec9da (diff) | |
download | redmine-555a2d31169bb512f1c5bde5c4f347dc227ff128.tar.gz redmine-555a2d31169bb512f1c5bde5c4f347dc227ff128.zip |
Fix missing subject and tracker name in CSV export of time (#33052).
Patch by Kevin Fischer and Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@19554 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/timelog_report_test.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb index f4764faed..3777f0c0c 100644 --- a/test/functional/timelog_report_test.rb +++ b/test/functional/timelog_report_test.rb @@ -259,6 +259,21 @@ class TimelogReportTest < Redmine::ControllerTest assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last end + def test_report_csv_should_fill_issue_criteria_with_tracker_id_and_subject + get :report, :params => { + :project_id => 1, + :columns => 'month', + :from => "2007-01-01", + :to => "2007-06-30", + :criteria => ["issue"], + :format => "csv" + } + + assert_response :success + lines = @response.body.chomp.split("\n") + assert lines.detect {|line| line.include?('Bug #1: Cannot print recipes')} + end + def test_csv_big_5 str_big5 = (+"\xa4@\xa4\xeb").force_encoding('Big5') user = User.find_by_id(3) |