[#4555] Include the spent FixedBudget in Hourly and Retainers total_spent

This commit is contained in:
Eric Davis
2010-09-23 10:14:12 -07:00
parent 0a80a54be3
commit ed9f73e8a0
5 changed files with 19 additions and 11 deletions
+2 -2
View File
@@ -250,8 +250,8 @@ class ContractTest < ActiveSupport::TestCase
@deliverable_2.fixed_budgets << FixedBudget.spawn(:budget => 200, :markup => '$100', :paid => true)
assert_equal 875, @deliverable_1.profit_left
assert_equal 825, @deliverable_2.profit_left
assert_equal 1700, contract.profit_left
assert_equal 1125, @deliverable_2.profit_left
assert_equal 2000, contract.profit_left
end
end