Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/backfill_operations_feature_flags_iid_spec.rb')
-rw-r--r--spec/migrations/backfill_operations_feature_flags_iid_spec.rb32
1 files changed, 0 insertions, 32 deletions
diff --git a/spec/migrations/backfill_operations_feature_flags_iid_spec.rb b/spec/migrations/backfill_operations_feature_flags_iid_spec.rb
deleted file mode 100644
index 3c400840f98..00000000000
--- a/spec/migrations/backfill_operations_feature_flags_iid_spec.rb
+++ /dev/null
@@ -1,32 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe BackfillOperationsFeatureFlagsIid do
- let(:namespaces) { table(:namespaces) }
- let(:projects) { table(:projects) }
- let(:flags) { table(:operations_feature_flags) }
-
- def setup
- namespace = namespaces.create!(name: 'foo', path: 'foo')
- projects.create!(namespace_id: namespace.id)
- end
-
- it 'migrates successfully when there are no flags in the database' do
- setup
-
- disable_migrations_output { migrate! }
-
- expect(flags.count).to eq(0)
- end
-
- it 'migrates successfully with a row in the table in both FOSS and EE' do
- project = setup
- flags.create!(project_id: project.id, active: true, name: 'test_flag')
-
- disable_migrations_output { migrate! }
-
- expect(flags.count).to eq(1)
- end
-end