[#4568] Change FixedDeliverable so it's markup is automatically paid

This commit is contained in:
Eric Davis committed 2010-09-29 10:18:25 -07:00
1 parent 0fd801c709
commit 7a5599b4f9
3 files changed
+18 -1

No files matched your search

+11
View File
@@ -65,4 +65,15 @@ class FixedDeliverableTest < ActiveSupport::TestCase
end
end
context "#fixed_markup_budget_total_spent" do
should "be the total markup from fixed budgets because FixedDeliverables are considered 100% paid" do
@deliverable = FixedDeliverable.generate!
FixedBudget.generate!(:deliverable => @deliverable, :budget => '$1,000', :markup => '$100', :paid => true)
FixedBudget.generate!(:deliverable => @deliverable, :budget => '$1,000', :markup => '$100', :paid => false)
assert_equal 200, @deliverable.fixed_markup_budget_total_spent
end
end
end