health_spec.rb 335 B

12345678910111213141516
  1. # frozen_string_literal: true
  2. require 'rails_helper'
  3. RSpec.describe 'Health check endpoint' do
  4. describe 'GET /health' do
  5. it 'returns http success when server is functioning' do
  6. get '/health'
  7. expect(response)
  8. .to have_http_status(200)
  9. expect(response.body)
  10. .to include('OK')
  11. end
  12. end
  13. end