summaryrefslogtreecommitdiffstats
path: root/test/functional/timelog_report_test.rb
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2020-03-04 07:45:36 +0000
committerGo MAEDA <maeda@farend.jp>2020-03-04 07:45:36 +0000
commit5c1f407d8229766fbde62c33d28be13699f49a02 (patch)
tree3dced6ef689937a49293702bd71ed2fc4b80d584 /test/functional/timelog_report_test.rb
parente4b73933a89ed886af158af12fbaa1981e726333 (diff)
downloadredmine-5c1f407d8229766fbde62c33d28be13699f49a02.tar.gz
redmine-5c1f407d8229766fbde62c33d28be13699f49a02.zip
Merged r19554 from trunk to 4.1-stable (#33052).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@19557 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/timelog_report_test.rb')
-rw-r--r--test/functional/timelog_report_test.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb
index e9c13b311..68ef80622 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)