diff options
Diffstat (limited to 'spec/features/admin/admin_health_check_spec.rb')
-rw-r--r-- | spec/features/admin/admin_health_check_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/features/admin/admin_health_check_spec.rb b/spec/features/admin/admin_health_check_spec.rb index f7e49a56deb..dec2dedf2b5 100644 --- a/spec/features/admin/admin_health_check_spec.rb +++ b/spec/features/admin/admin_health_check_spec.rb @@ -1,11 +1,9 @@ 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 @@ -14,12 +12,11 @@ feature "Admin Health Check", feature: true do visit admin_health_check_path end - it 'has a health check access token' do - page.has_text? 'Health Check' - page.has_text? 'Health information can be retrieved' + it { page.has_text? 'Health Check' } + it { page.has_text? 'Health information can be retrieved' } + it 'has a health check access token' do 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 |