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