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/change_outbound_local_requests_whitelist_default_spec.rb')
-rw-r--r--spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb21
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb b/spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb
deleted file mode 100644
index 24e6f3480f9..00000000000
--- a/spec/migrations/change_outbound_local_requests_whitelist_default_spec.rb
+++ /dev/null
@@ -1,21 +0,0 @@
-# frozen_string_literal: true
-
-require 'spec_helper'
-require_migration!
-
-RSpec.describe ChangeOutboundLocalRequestsWhitelistDefault do
- let(:application_settings) { table(:application_settings) }
-
- it 'defaults to empty array' do
- setting = application_settings.create!
- setting_with_value = application_settings.create!(outbound_local_requests_whitelist: '{a,b}')
-
- expect(application_settings.where(outbound_local_requests_whitelist: nil).count).to eq(1)
-
- migrate!
-
- expect(application_settings.where(outbound_local_requests_whitelist: nil).count).to eq(0)
- expect(setting.reload.outbound_local_requests_whitelist).to eq([])
- expect(setting_with_value.reload.outbound_local_requests_whitelist).to eq(%w[a b])
- end
-end