mirror of
https://github.com/redmine/redmine.git
synced 2025-12-16 05:20:28 +01:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user