From 691adf521e40b27be8a08d8c04d26ed7cdec2827 Mon Sep 17 00:00:00 2001 From: Eric Davis Date: Wed, 6 Oct 2010 17:36:06 -0700 Subject: [PATCH] Add a Rate so TimeEntry costs are measured --- test/performance/contract_show_test.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/performance/contract_show_test.rb b/test/performance/contract_show_test.rb index 70f6a56..ce12ed3 100644 --- a/test/performance/contract_show_test.rb +++ b/test/performance/contract_show_test.rb @@ -11,8 +11,10 @@ class ContractShowTest < ActionController::PerformanceTest @fixed_deliverable = FixedDeliverable.generate!(:contract => @contract, :manager => @manager, :title => 'The Title') @hourly_deliverable = HourlyDeliverable.generate!(:contract => @contract, :manager => @manager, :title => 'An Hourly') + @rate = Rate.generate!(:project => @project, :user => @manager, :date_in_effect => Date.today, :amount => 100) + configure_overhead_plugin - 200.times do + 100.times do generate_issues_and_time_entries_for_deliverable(@hourly_deliverable, @project) generate_issues_and_time_entries_for_deliverable(@fixed_deliverable, @project) end @@ -42,6 +44,7 @@ class ContractShowTest < ActionController::PerformanceTest :spent_on => Date.today, :hours => 20, :user => @manager) + deliverable.issues << @issue1 end