Added tests to check Budget#amount_missing_on_issues. #1924

This commit is contained in:
Eric Davis committed 2009-01-21 15:52:56 -08:00
1 parent 11b8a0a462
commit 559b52112d
2 files changed
+15 -1

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ class Budget
# Dollar amount of time that has been logged to the project itself
def amount_missing_on_issues
time_logs = TimeEntry.find_all_by_project_id_and_issue_id(self.project, nil)
time_logs = TimeEntry.find_all_by_project_id_and_issue_id(self.project.id, nil)
return time_logs.collect(&:cost).sum
end