diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 00:08:06 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2024-01-19 00:08:06 +0300 |
commit | af7558b036a53ebb0484e7978694a0b419c38c70 (patch) | |
tree | 198bc423fd5bb7ca04e652f5a0c1d66c7d42d2c4 /spec/migrations/add_okr_hierarchy_restrictions_spec.rb | |
parent | 055b4c04d5cef7029625c08619df4f3bcdccc6c2 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/migrations/add_okr_hierarchy_restrictions_spec.rb')
-rw-r--r-- | spec/migrations/add_okr_hierarchy_restrictions_spec.rb | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/spec/migrations/add_okr_hierarchy_restrictions_spec.rb b/spec/migrations/add_okr_hierarchy_restrictions_spec.rb deleted file mode 100644 index ace581c7e3c..00000000000 --- a/spec/migrations/add_okr_hierarchy_restrictions_spec.rb +++ /dev/null @@ -1,35 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require_migration! - -RSpec.describe AddOkrHierarchyRestrictions, :migration, feature_category: :portfolio_management do - include MigrationHelpers::WorkItemTypesHelper - - let!(:restrictions) { table(:work_item_hierarchy_restrictions) } - let!(:work_item_types) { table(:work_item_types) } - - it 'creates default restrictions' do - restrictions.delete_all - - reversible_migration do |migration| - migration.before -> { - expect(restrictions.count).to eq(0) - } - - migration.after -> { - expect(restrictions.count).to eq(4) - } - end - end - - context 'when work items are missing' do - before do - work_item_types.delete_all - end - - it 'does nothing' do - expect { migrate! }.not_to change { restrictions.count } - end - end -end |