[#4184] Test refactoring.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user