[#4184] Test refactoring.

This commit is contained in:
Eric Davis
2010-07-13 14:36:06 -07:00
parent 30172b4be1
commit b787d4adbe
@@ -10,14 +10,18 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
end end
context "migrate" do context "migrate" do
should "load a YAML dump of the old budget data" do setup do
@data = load_test_fixture @data = load_test_fixture
end
should "load a YAML dump of the old budget data" do
RedmineContracts::BudgetPluginMigration.migrate(@data) RedmineContracts::BudgetPluginMigration.migrate(@data)
assert RedmineContracts::BudgetPluginMigration.data assert_equal @data, RedmineContracts::BudgetPluginMigration.data
end end
should "create a new Deliverable for each old Deliverable" should "create a new Deliverable for each old Deliverable"
should "create a new Contract for each project that had an old deliverable" should "create a new Contract for each project that had an old deliverable"
end end
end end