summaryrefslogtreecommitdiff
path: root/spec/migrations/remove_alerts_service_records_again_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/remove_alerts_service_records_again_spec.rb')
-rw-r--r--spec/migrations/remove_alerts_service_records_again_spec.rb23
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/migrations/remove_alerts_service_records_again_spec.rb b/spec/migrations/remove_alerts_service_records_again_spec.rb
deleted file mode 100644
index 94d3e957b6a..00000000000
--- a/spec/migrations/remove_alerts_service_records_again_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe RemoveAlertsServiceRecordsAgain do
- let(:services) { table(:services) }
-
- before do
- 5.times { services.create!(type: 'AlertsService') }
- services.create!(type: 'SomeOtherType')
- end
-
- it 'removes services records of type AlertsService and corresponding data', :aggregate_failures do
- expect(services.count).to eq(6)
-
- migrate!
-
- expect(services.count).to eq(1)
- expect(services.first.type).to eq('SomeOtherType')
- expect(services.where(type: 'AlertsService')).to be_empty
- end
-end