diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-12 08:35:12 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2011-11-12 08:35:12 +0000 |
commit | e1d71c7968b52bb787d10caa88029731c6ffd60a (patch) | |
tree | 8ea192a3d92cadd18ead4cdc99020c4634f3c005 | |
parent | b560927d457d2c453afa6669b73c7efc24fea33d (diff) | |
download | redmine-e1d71c7968b52bb787d10caa88029731c6ffd60a.tar.gz redmine-e1d71c7968b52bb787d10caa88029731c6ffd60a.zip |
code layout clean up test_report_csv_export of test/functional/time_entry_reports_controller_test.rb
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7784 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/functional/time_entry_reports_controller_test.rb | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/test/functional/time_entry_reports_controller_test.rb b/test/functional/time_entry_reports_controller_test.rb index 06146151b..fc0b6a738 100644 --- a/test/functional/time_entry_reports_controller_test.rb +++ b/test/functional/time_entry_reports_controller_test.rb @@ -131,14 +131,16 @@ class TimeEntryReportsControllerTest < ActionController::TestCase end def test_report_csv_export - get :report, :project_id => 1, :columns => 'month', :from => "2007-01-01", :to => "2007-06-30", :criterias => ["project", "member", "activity"], :format => "csv" + get :report, :project_id => 1, :columns => 'month', + :from => "2007-01-01", :to => "2007-06-30", + :criterias => ["project", "member", "activity"], :format => "csv" assert_response :success assert_equal 'text/csv', @response.content_type lines = @response.body.chomp.split("\n") # Headers - assert_equal 'Project,Member,Activity,2007-1,2007-2,2007-3,2007-4,2007-5,2007-6,Total', lines.first + assert_equal 'Project,Member,Activity,2007-1,2007-2,2007-3,2007-4,2007-5,2007-6,Total', + lines.first # Total row assert_equal 'Total,"","","","",154.25,8.65,"","",162.90', lines.last end - end |