summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 09:30:41 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-09-20 09:30:41 +0000
commit41cbd239c44eb8f702d04a8b0ba25dfc381483ad (patch)
tree3b6175b2d6f65bbe5e17f3370b9eb5c1cefe7629 /test
parentb4c55ea4dee9bf160de809a86958ddd2240b6e91 (diff)
downloadredmine-41cbd239c44eb8f702d04a8b0ba25dfc381483ad.tar.gz
redmine-41cbd239c44eb8f702d04a8b0ba25dfc381483ad.zip
Makes timelog report work at issue level (#2935).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2893 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/timelog_controller_test.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 371fded18..e9ca2d2bb 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -206,6 +206,14 @@ class TimelogControllerTest < ActionController::TestCase
assert_equal "162.90", "%.2f" % assigns(:total_hours)
end
+ def test_report_at_issue_level
+ get :report, :project_id => 1, :issue_id => 1, :columns => 'month', :from => "2007-01-01", :to => "2007-12-31", :criterias => ["member", "activity"]
+ assert_response :success
+ assert_template 'report'
+ assert_not_nil assigns(:total_hours)
+ assert_equal "154.25", "%.2f" % assigns(:total_hours)
+ end
+
def test_report_custom_field_criteria
get :report, :project_id => 1, :criterias => ['project', 'cf_1']
assert_response :success