summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_health_check_spec.rb
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/features/admin/admin_health_check_spec.rb
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/features/admin/admin_health_check_spec.rb')
-rw-r--r--spec/features/admin/admin_health_check_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/features/admin/admin_health_check_spec.rb b/spec/features/admin/admin_health_check_spec.rb
index dec2dedf2b5..f7e49a56deb 100644
--- a/spec/features/admin/admin_health_check_spec.rb
+++ b/spec/features/admin/admin_health_check_spec.rb
@@ -1,9 +1,11 @@
require 'spec_helper'
feature "Admin Health Check", feature: true do
+ include StubENV
include WaitForAjax
before do
+ stub_env('IN_MEMORY_APPLICATION_SETTINGS', 'false')
login_as :admin
end
@@ -12,11 +14,12 @@ feature "Admin Health Check", feature: true do
visit admin_health_check_path
end
- it { page.has_text? 'Health Check' }
- it { page.has_text? 'Health information can be retrieved' }
-
it 'has a health check access token' do
+ page.has_text? 'Health Check'
+ page.has_text? 'Health information can be retrieved'
+
token = current_application_settings.health_check_access_token
+
expect(page).to have_content("Access token is #{token}")
expect(page).to have_selector('#health-check-token', text: token)
end