Added tests to check Budget#amount_missing_on_issues. #1924

This commit is contained in:
Eric Davis
2009-01-21 15:52:21 -08:00
parent 11b8a0a462
commit 559b52112d
2 changed files with 15 additions and 1 deletions

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