mirror of
https://github.com/redmine/redmine.git
synced 2026-02-01 20:30:11 +01:00
Merged r19341 from trunk to 4.0-stable (#32500).
git-svn-id: http://svn.redmine.org/redmine/branches/4.0-stable@19343 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -246,14 +246,14 @@ class TimelogReportTest < Redmine::ControllerTest
|
||||
:columns => 'month',
|
||||
:from => "2007-01-01",
|
||||
:to => "2007-06-30",
|
||||
:criteria => ["project", "user", "activity"],
|
||||
:criteria => ["project", "user", "cf_10"],
|
||||
:format => "csv"
|
||||
}
|
||||
assert_response :success
|
||||
assert_equal 'text/csv', @response.content_type
|
||||
lines = @response.body.chomp.split("\n")
|
||||
# Headers
|
||||
assert_equal 'Project,User,Activity,2007-3,2007-4,Total time', lines.first
|
||||
assert_equal 'Project,User,Overtime,2007-3,2007-4,Total time', lines.first
|
||||
# Total row
|
||||
assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user