From 06a92fe0d0b7923da034d58cb31cd0fdc3992c13 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 10 Mar 2013 13:01:46 +0000 Subject: Adds label_total_time string (#13337). git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11582 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/time_entry_reports_controller_test.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/functional/time_entry_reports_controller_test.rb b/test/functional/time_entry_reports_controller_test.rb index 76013614e..755cdc345 100644 --- a/test/functional/time_entry_reports_controller_test.rb +++ b/test/functional/time_entry_reports_controller_test.rb @@ -140,7 +140,7 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_select 'th:nth-child(2)', :text => '2009-52' assert_select 'th:nth-child(3)', :text => '2009-53' assert_select 'th:nth-child(4)', :text => '2010-1' - assert_select 'th:nth-child(5)', :text => 'Total' + assert_select 'th:nth-child(5)', :text => 'Total time' end assert_select '#time-report tbody tr' do assert_select 'td:nth-child(1)', :text => 'eCookbook' @@ -206,9 +206,9 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_equal 'text/csv; header=present', @response.content_type lines = @response.body.chomp.split("\n") # Headers - assert_equal 'Project,User,Activity,2007-3,2007-4,Total', lines.first + assert_equal 'Project,User,Activity,2007-3,2007-4,Total time', lines.first # Total row - assert_equal 'Total,"","",154.25,8.65,162.90', lines.last + assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last end def test_report_csv_export @@ -219,9 +219,9 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_equal 'text/csv; header=present', @response.content_type lines = @response.body.chomp.split("\n") # Headers - assert_equal 'Project,User,Activity,2007-3,2007-4,Total', lines.first + assert_equal 'Project,User,Activity,2007-3,2007-4,Total time', lines.first # Total row - assert_equal 'Total,"","",154.25,8.65,162.90', lines.last + assert_equal 'Total time,"","",154.25,8.65,162.90', lines.last end def test_csv_big_5 @@ -348,8 +348,8 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_equal 'text/csv; header=present', @response.content_type lines = @response.body.chomp.split("\n") # Headers - s1 = "Utilisateur;2011-11-11;Total" - s2 = "Total" + s1 = "Utilisateur;2011-11-11;Temps total" + s2 = "Temps total" if s1.respond_to?(:force_encoding) s1.force_encoding('ISO-8859-1') s2.force_encoding('ISO-8859-1') -- cgit v1.2.3