Convert health check endpoint controller spec to request spec (#31565)

pull/31595/head
Matt Jankowski 4 months ago committed by GitHub
parent e3516fa8cf
commit 641ae6a2cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -1,14 +0,0 @@
# frozen_string_literal: true
require 'rails_helper'
describe HealthController do
render_views
describe 'GET #show' do
it 'returns http success' do
get :show
expect(response).to have_http_status(200)
end
end
end

@ -0,0 +1,16 @@
# frozen_string_literal: true
require 'rails_helper'
describe 'Health check endpoint' do
describe 'GET /health' do
it 'returns http success when server is functioning' do
get '/health'
expect(response)
.to have_http_status(200)
expect(response.body)
.to include('OK')
end
end
end
Loading…
Cancel
Save