diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-14 09:51:56 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2012-01-14 09:51:56 +0000 |
commit | a6a627f4455bdd2a39c4c36d8b1b85ccda6f03ad (patch) | |
tree | c7e7e3f146412da77d1e66b7677b7db6aab821f8 /test | |
parent | dc7a0ebcf28827ac8076e89b0b86e50a7a6aeef9 (diff) | |
download | redmine-a6a627f4455bdd2a39c4c36d8b1b85ccda6f03ad.tar.gz redmine-a6a627f4455bdd2a39c4c36d8b1b85ccda6f03ad.zip |
Adds "Status" to the time report criteria (#9985).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8643 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/time_entry_reports_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/time_entry_reports_controller_test.rb b/test/functional/time_entry_reports_controller_test.rb index c9256145a..e4ea8b8ec 100644 --- a/test/functional/time_entry_reports_controller_test.rb +++ b/test/functional/time_entry_reports_controller_test.rb @@ -124,6 +124,14 @@ class TimeEntryReportsControllerTest < ActionController::TestCase assert_equal "0.00", "%.2f" % assigns(:report).total_hours end + def test_report_status_criterion + get :report, :project_id => 1, :criteria => ['status'] + assert_response :success + assert_template 'report' + assert_tag :tag => 'th', :content => 'Status' + assert_tag :tag => 'td', :content => 'New' + end + def test_report_all_projects_csv_export get :report, :columns => 'month', :from => "2007-01-01", :to => "2007-06-30", :criteria => ["project", "member", "activity"], :format => "csv" |