diff options
Diffstat (limited to 'spec/migrations')
-rw-r--r-- | spec/migrations/20220920180451_schedule_vulnerabilities_feedback_migration_spec.rb | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/spec/migrations/20220920180451_schedule_vulnerabilities_feedback_migration_spec.rb b/spec/migrations/20220920180451_schedule_vulnerabilities_feedback_migration_spec.rb deleted file mode 100644 index 4f2b5f6b50f..00000000000 --- a/spec/migrations/20220920180451_schedule_vulnerabilities_feedback_migration_spec.rb +++ /dev/null @@ -1,31 +0,0 @@ -# frozen_string_literal: true - -require 'spec_helper' -require_migration! - -RSpec.describe ScheduleVulnerabilitiesFeedbackMigration, feature_category: :vulnerability_management do - let(:migration) { described_class::MIGRATION } - - describe '#up' do - it 'schedules background jobs for each batch of Vulnerabilities::Feedback' do - migrate! - - expect(migration).to have_scheduled_batched_migration( - table_name: :vulnerability_feedback, - column_name: :id, - interval: described_class::DELAY_INTERVAL, - batch_size: described_class::BATCH_SIZE, - max_batch_size: described_class::MAX_BATCH_SIZE - ) - end - end - - describe '#down' do - it 'deletes all batched migration records' do - migrate! - schema_migrate_down! - - expect(migration).not_to have_scheduled_batched_migration - end - end -end |