summaryrefslogtreecommitdiff
path: root/spec/migrations/drop_alerts_service_data_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/drop_alerts_service_data_spec.rb')
-rw-r--r--spec/migrations/drop_alerts_service_data_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/migrations/drop_alerts_service_data_spec.rb b/spec/migrations/drop_alerts_service_data_spec.rb
deleted file mode 100644
index 06382132952..00000000000
--- a/spec/migrations/drop_alerts_service_data_spec.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe DropAlertsServiceData do
- let_it_be(:alerts_service_data) { table(:alerts_service_data) }
-
- it 'correctly migrates up and down' do
- reversible_migration do |migration|
- migration.before -> {
- expect(alerts_service_data.create!(service_id: 1)).to be_a alerts_service_data
- }
-
- migration.after -> {
- expect { alerts_service_data.create!(service_id: 1) }
- .to raise_error(ActiveRecord::StatementInvalid, /UndefinedTable/)
- }
- end
- end
-end