Commit 4dbc309b authored by Rémy Coutable's avatar Rémy Coutable

Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c3e26860
...@@ -2,10 +2,15 @@ require 'spec_helper' ...@@ -2,10 +2,15 @@ require 'spec_helper'
require 'rainbow/ext/string' require 'rainbow/ext/string'
describe 'seed production settings' do describe 'seed production settings' do
include StubENV
let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') } let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') }
let(:settings) { Gitlab::CurrentSettings.current_application_settings } let(:settings) { Gitlab::CurrentSettings.current_application_settings }
before do
# It's important to set this variable so that we don't save a memoized
# (supposed to be) in-memory record in `Gitlab::CurrentSettings.in_memory_application_settings`
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
end
context 'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment' do context 'GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN is set in the environment' do
before do before do
stub_env('GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN', '013456789') stub_env('GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN', '013456789')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment