2024-08-26 22:17:35 +10:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'rails_helper'
|
|
|
|
|
2024-09-04 15:12:25 +10:00
|
|
|
RSpec.describe 'Health check endpoint' do
|
2024-08-26 22:17:35 +10:00
|
|
|
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
|