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