[#6574] Add a TimeEntryActivity to OverheadBudgets

This commit is contained in:
Eric Davis
2011-09-15 10:38:16 -07:00
parent b3b7fa11b0
commit 33e07ee10b
8 changed files with 35 additions and 4 deletions

View File

@@ -238,6 +238,7 @@ class DeliverablesNewTest < ActionController::IntegrationTest
end
within("#deliverable-overhead") do
select @non_billable_activity.name, :from => 'Activity'
fill_in "hrs", :with => '10'
fill_in "$", :with => '$1,000'
end
@@ -266,6 +267,7 @@ class DeliverablesNewTest < ActionController::IntegrationTest
@overhead_budget = @deliverable.overhead_budgets.first
assert_equal 10, @overhead_budget.hours
assert_equal 1000.0, @overhead_budget.budget
assert_equal @non_billable_activity, @overhead_budget.time_entry_activity
assert_equal 1, @deliverable.fixed_budgets.count
@fixed_budget = @deliverable.fixed_budgets.first

View File

@@ -2,6 +2,9 @@ require File.dirname(__FILE__) + '/../test_helper'
class OverheadBudgetTest < ActiveSupport::TestCase
should_belong_to :deliverable
should_belong_to :time_entry_activity
should_validate_presence_of :time_entry_activity_id
context "#budget=" do
should "strip dollar signs when writing" do