1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-04-01 21:51:14 +00:00

remove trailing white spaces from test/functional/timelog_report_test.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@17134 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2017-12-28 18:40:25 +00:00
parent cf7c9b9b12
commit fca43b026e

View File

@ -263,7 +263,7 @@ class TimelogReportTest < Redmine::ControllerTest
end end
assert_response :success assert_response :success
assert_equal 'text/csv; header=present', @response.content_type assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n") lines = @response.body.chomp.split("\n")
# Headers # Headers
s1 = "\xa5\xce\xa4\xe1,2011-11-11,\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5') s1 = "\xa5\xce\xa4\xe1,2011-11-11,\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5')
s2 = "\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5') s2 = "\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5')
@ -310,7 +310,7 @@ class TimelogReportTest < Redmine::ControllerTest
end end
assert_response :success assert_response :success
assert_equal 'text/csv; header=present', @response.content_type assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n") lines = @response.body.chomp.split("\n")
# Headers # Headers
s1 = "\xa5\xce\xa4\xe1,2011-11-11,\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5') s1 = "\xa5\xce\xa4\xe1,2011-11-11,\xa4u\xae\xc9\xc1`\xadp".force_encoding('Big5')
assert_equal s1, lines.first assert_equal s1, lines.first
@ -345,7 +345,7 @@ class TimelogReportTest < Redmine::ControllerTest
} }
assert_response :success assert_response :success
assert_equal 'text/csv; header=present', @response.content_type assert_equal 'text/csv; header=present', @response.content_type
lines = @response.body.chomp.split("\n") lines = @response.body.chomp.split("\n")
# Headers # Headers
s1 = "Utilisateur;2011-11-11;Temps total".force_encoding('ISO-8859-1') s1 = "Utilisateur;2011-11-11;Temps total".force_encoding('ISO-8859-1')
s2 = "Temps total".force_encoding('ISO-8859-1') s2 = "Temps total".force_encoding('ISO-8859-1')