[#4184] Enable the contracts module for projects in the conversion.
This commit is contained in:
1 parent
d08d3ccc52
commit
f668d55552
2 files changed
+12
No files matched your search
@@ -53,6 +53,15 @@ class BudgetPluginMigrationTest < ActionController::IntegrationTest
|
||||
assert_equal 2, @project_two.reload.contracts.first.deliverables.count
|
||||
end
|
||||
|
||||
should "enable the contracts plugin for each project with a contract" do
|
||||
@no_deliverables = Project.generate!(:enabled_modules => [])
|
||||
RedmineContracts::BudgetPluginMigration.migrate(@data)
|
||||
|
||||
assert @project_one.reload.module_enabled?(:contracts)
|
||||
assert @project_two.reload.module_enabled?(:contracts)
|
||||
assert !@no_deliverables.reload.module_enabled?(:contracts)
|
||||
end
|
||||
|
||||
should "pick the first project member for the deliverable manager" do
|
||||
RedmineContracts::BudgetPluginMigration.migrate(@data)
|
||||
|
||||
|
||||
Reference in new issue
Block a user