Calc cleanup

This commit is contained in:
Eric Davis
2008-06-03 17:19:30 -07:00
parent 5180b5b218
commit 490bf73efe
8 changed files with 45 additions and 1 deletions
+7
View File
@@ -15,3 +15,10 @@ describe FixedDeliverable, '.spent' do
@deliverable.spent.should eql(2500.0)
end
end
describe FixedDeliverable, '.profit as a %' do
it 'should return the % of the fixed bid amount' do
@deliverable = FixedDeliverable.new({ :subject => 'test', :profit_percent => 50, :fixed_cost => 1000.0 })
@deliverable.profit.should eql(500.0)
end
end