[#4184] Starting on the budget data migration.
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
require 'test_helper'
|
||||
|
||||
class BudgetPluginMigrationTest < ActionController::IntegrationTest
|
||||
def setup
|
||||
configure_overhead_plugin
|
||||
end
|
||||
|
||||
def load_test_fixture
|
||||
YAML.load(File.read(File.expand_path(File.dirname(__FILE__)) + "/../fixtures/budget_plugin_migration/budget.yml"))
|
||||
end
|
||||
|
||||
context "migrate" do
|
||||
should "load a YAML dump of the old budget data" do
|
||||
@data = load_test_fixture
|
||||
RedmineContracts::BudgetPluginMigration.migrate(@data)
|
||||
|
||||
assert RedmineContracts::BudgetPluginMigration.data
|
||||
end
|
||||
|
||||
should "create a new Deliverable for each old Deliverable"
|
||||
should "create a new Contract for each project that had an old deliverable"
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user