summaryrefslogtreecommitdiff
path: root/spec/db
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2018-04-16 10:46:37 +0200
committerRémy Coutable <remy@rymai.me>2018-04-16 10:48:53 +0200
commit4dbc309b9e128413ffe1b5a3198cbfe22d0bce41 (patch)
tree53d0fca78e78812976a321911b6542e4c41dc92d /spec/db
parentc3e26860be156314e733a6dfb986c91fc55766f5 (diff)
downloadgitlab-ce-4dbc309b9e128413ffe1b5a3198cbfe22d0bce41.tar.gz
Set ENV['IN_MEMORY_APPLICATION_SETTINGS'] to 'true in spec/db/production/settings_spec.rb
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/db')
-rw-r--r--spec/db/production/settings_spec.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/spec/db/production/settings_spec.rb b/spec/db/production/settings_spec.rb
index 79e67330854..c8d016070f5 100644
--- a/spec/db/production/settings_spec.rb
+++ b/spec/db/production/settings_spec.rb
@@ -2,10 +2,15 @@ require 'spec_helper'
require 'rainbow/ext/string'
describe 'seed production settings' do
- include StubENV
let(:settings_file) { Rails.root.join('db/fixtures/production/010_settings.rb') }
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
before do
stub_env('GITLAB_SHARED_RUNNERS_REGISTRATION_TOKEN', '013456789')