[#6636] Add methods to Deliverable get the costs and hours by issue category

This commit is contained in:
Eric Davis
2011-10-13 15:17:24 -07:00
parent b8dc021d8e
commit ac050d7905
3 changed files with 191 additions and 1 deletions
+2 -1
View File
@@ -130,8 +130,9 @@ class ActiveSupport::TestCase
activity = options[:activity]
amount = options[:amount] || 100
hours = options[:hours] || 2
issue_category = options[:issue_category]
issue = Issue.generate_for_project!(project)
issue = Issue.generate_for_project!(project, :category_id => issue_category.try(:id))
time_entry = TimeEntry.generate!(:issue => issue,
:project => project,
:activity => activity,