summaryrefslogtreecommitdiff
path: root/spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb')
-rw-r--r--spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb b/spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb
deleted file mode 100644
index 302ae1d5ebe..00000000000
--- a/spec/migrations/schedule_recalculate_project_authorizations_third_run_spec.rb
+++ /dev/null
@@ -1,28 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe ScheduleRecalculateProjectAuthorizationsThirdRun do
- let(:users_table) { table(:users) }
-
- before do
- stub_const("#{described_class}::BATCH_SIZE", 2)
-
- 1.upto(4) do |i|
- users_table.create!(id: i, name: "user#{i}", email: "user#{i}@example.com", projects_limit: 1)
- end
- end
-
- it 'schedules background migration' do
- Sidekiq::Testing.fake! do
- freeze_time do
- migrate!
-
- expect(BackgroundMigrationWorker.jobs.size).to eq(2)
- expect(described_class::MIGRATION).to be_scheduled_migration(1, 2)
- expect(described_class::MIGRATION).to be_scheduled_migration(3, 4)
- end
- end
- end
-end