summaryrefslogtreecommitdiff
path: root/spec/db/production
diff options
context:
space:
mode:
Diffstat (limited to 'spec/db/production')
-rw-r--r--spec/db/production/settings_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/db/production/settings_spec.rb b/spec/db/production/settings_spec.rb
index c6b772f4e93..00c631b866e 100644
--- a/spec/db/production/settings_spec.rb
+++ b/spec/db/production/settings_spec.rb
@@ -3,8 +3,8 @@ require 'rainbow/ext/string'
describe 'seed production settings', lib: true do
include StubENV
- let(:settings_file) { File.join(__dir__, '../../../db/fixtures/production/010_settings.rb') }
- let(:settings) { ApplicationSetting.current || ApplicationSetting.create_from_defaults }
+ let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') }
+ let(:settings) { Gitlab::CurrentSettings.current_application_settings }
context 'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment' do
before do