summaryrefslogtreecommitdiff
path: root/spec/controllers
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-01-14 00:18:40 -0500
committerRémy Coutable <remy@rymai.me>2017-01-15 01:07:29 -0500
commitf6cc29ed83921c3dce98d8c519c4826e7cc8221a (patch)
tree72e16219c0c0609c2516ae9eb62bd9b3136f7a3f /spec/controllers
parentb038c53073b191df2044f96d4ff5d01a35b22d83 (diff)
downloadgitlab-ce-f6cc29ed83921c3dce98d8c519c4826e7cc8221a.tar.gz
Don't persist ApplicationSetting in test envdont-persist-application-settings-in-test-env
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/health_check_controller_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/controllers/health_check_controller_spec.rb b/spec/controllers/health_check_controller_spec.rb
index 56ecf2bb644..cfe18dd4b6c 100644
--- a/spec/controllers/health_check_controller_spec.rb
+++ b/spec/controllers/health_check_controller_spec.rb
@@ -1,10 +1,16 @@
require 'spec_helper'
describe HealthCheckController do
+ include StubENV
+
let(:token) { current_application_settings.health_check_access_token }
let(:json_response) { JSON.parse(response.body) }
let(:xml_response) { Hash.from_xml(response.body)['hash'] }
+ before do
+ stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
+ end
+
describe 'GET #index' do
context 'when services are up but NO access token' do
it 'returns a not found page' do