From 430f3de41833440fb84a62787c5ac2fd0889cd80 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Mon, 30 Jun 2008 15:41:53 -0700 Subject: [PATCH] Fixed broken spec due to floats --- spec/models/budget_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/budget_spec.rb b/spec/models/budget_spec.rb index 69a1f19..b313537 100644 --- a/spec/models/budget_spec.rb +++ b/spec/models/budget_spec.rb @@ -340,8 +340,8 @@ describe Budget, '.profit' do it 'should be calculated by the total profit of the deliverables with % amounts' do @project = mock_model(Project) - @deliverable1 = mock_model(HourlyDeliverable, :project_id => @project, :profit_percent => 10, :budget => 2000.0, :profit => 200) - @deliverable2 = mock_model(HourlyDeliverable, :project_id => @project, :profit_percent => 10, :budget => 1000.0, :profit => 100) + @deliverable1 = mock_model(HourlyDeliverable, :project_id => @project, :profit_percent => 10, :budget => 2000.0, :profit => 200.0) + @deliverable2 = mock_model(HourlyDeliverable, :project_id => @project, :profit_percent => 10, :budget => 1000.0, :profit => 100.0) Deliverable.stub!(:find_all_by_project_id).and_return([@deliverable1, @deliverable2]) Project.stub!(:find).with(@project.id).and_return(@project)