diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-14 00:18:40 -0500 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-15 01:07:29 -0500 |
commit | f6cc29ed83921c3dce98d8c519c4826e7cc8221a (patch) | |
tree | 72e16219c0c0609c2516ae9eb62bd9b3136f7a3f /spec/controllers | |
parent | b038c53073b191df2044f96d4ff5d01a35b22d83 (diff) | |
download | gitlab-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.rb | 6 |
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 |