Fixed a test that was shadowed by another.
This commit is contained in:
1 parent
06e3f8d39a
commit
0b0977a492
1 file changed
+3
-4
@@ -89,12 +89,11 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
|
|||||||
end
|
end
|
||||||
|
|
||||||
d = Deliverable.find_by_title("Deliverable 2")
|
d = Deliverable.find_by_title("Deliverable 2")
|
||||||
assert_equal 1, d.overhead_budgets.count
|
assert_equal 2, d.overhead_budgets.count
|
||||||
assert_equal 12 * 25 * 1.5, d.overhead_budget_total # hourly
|
|
||||||
|
|
||||||
overhead = d.overhead_budgets.first
|
overhead = d.overhead_budgets.first
|
||||||
assert overhead
|
assert overhead
|
||||||
assert_equal 450, overhead.budget
|
assert_equal 12 * 25 * 1.5, overhead.budget
|
||||||
assert_equal 0, overhead.hours
|
assert_equal 0, overhead.hours
|
||||||
|
|
||||||
end
|
end
|
||||||
@@ -114,7 +113,7 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
|
|||||||
assert_equal 0, materials.hours
|
assert_equal 0, materials.hours
|
||||||
end
|
end
|
||||||
|
|
||||||
should "create a new Overhead Budget record for any overhead percent" do
|
should "create a new Overhead Budget record for any materials percent" do
|
||||||
assert_difference("OverheadBudget.count", 5) do
|
assert_difference("OverheadBudget.count", 5) do
|
||||||
RedmineContracts::BudgetPluginMigration.migrate(@data)
|
RedmineContracts::BudgetPluginMigration.migrate(@data)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in new issue
Block a user