summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2018-10-17 19:03:33 +0100
committerNick Thomas <nick@gitlab.com>2018-10-19 01:39:59 +0100
commit331c4f4da6366dbc8989be915be98575107395a6 (patch)
treee9ad85b5ea3cd67745c1375d11637e9ac84ea15a
parentc094bdb8206322eff5cdc6c22b9eafa08ff3bd2d (diff)
downloadgitlab-ce-331c4f4da6366dbc8989be915be98575107395a6.tar.gz
Harden a spec
-rw-r--r--spec/services/application_settings/update_service_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/services/application_settings/update_service_spec.rb b/spec/services/application_settings/update_service_spec.rb
index 6337ee7d724..daf5dfba6b1 100644
--- a/spec/services/application_settings/update_service_spec.rb
+++ b/spec/services/application_settings/update_service_spec.rb
@@ -10,6 +10,9 @@ describe ApplicationSettings::UpdateService do
before do
# So the caching behaves like it would in production
stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
+
+ # Creating these settings first ensures they're used by other factories
+ application_settings
end
describe 'updating terms' do