Calc cleanup

This commit is contained in:
Eric Davis committed 2008-06-03 17:19:30 -07:00
1 parent 5180b5b218
commit 490bf73efe
8 files changed
+45 -1

No files matched your search

+7
View File
@@ -26,3 +26,10 @@ describe HourlyDeliverable, '.spent' do
@deliverable.spent.should eql(60.0)
end
end
describe HourlyDeliverable, '.profit as a %' do
it 'should return the % of the hours mutipled by the cost per hour amount' do
@deliverable = HourlyDeliverable.new({ :subject => 'test', :profit_percent => 50, :cost_per_hour => 100.0, :total_hours => 10 })
@deliverable.profit.should eql(500.0)
end
end