[#4551] Use the old deliverable subject as part of the FixedBudget item

This commit is contained in:
Eric Davis
2010-09-22 13:03:14 -07:00
parent c9861835e7
commit 8582ad0ecd
2 changed files with 4 additions and 1 deletions
@@ -172,7 +172,9 @@ module RedmineContracts
deliverable.fixed_budgets << FixedBudget.new(:deliverable => deliverable,
:budget => budget,
:markup => markup)
:markup => markup,
:title => "Converted Fixed Deliverable - #{old_deliverable['subject']}")
end
def self.append_old_deliverable_to_notes(old_deliverable, new_deliverable)
@@ -162,6 +162,7 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
fixed_budget_item = d.fixed_budgets.first
assert_equal 30_000, fixed_budget_item.budget
assert_equal "150%", fixed_budget_item.markup
assert_equal "Converted Fixed Deliverable - Version 1.0", fixed_budget_item.title
end
end