From 23703c3afd20ade76fae436bda3a41c261cce632 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 4 Mar 2020 07:47:30 +0000 Subject: Merged r19554 from trunk to 4.0-stable (#33052). git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@19558 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/timelog_report_test.rb | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'test') diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb index 73814b547..0bf7b9a63 100644 --- a/test/functional/timelog_report_test.rb +++ b/test/functional/timelog_report_test.rb @@ -258,6 +258,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_utf8 = "\xe4\xb8\x80\xe6\x9c\x88".force_encoding('UTF-8') str_big5 = "\xa4@\xa4\xeb".force_encoding('Big5') -- cgit v1.2.3