lexivo/spec/requests/health_spec.rb
2026-03-30 13:18:39 +02:00

14 lines
349 B
Ruby

# frozen_string_literal: true
require "rails_helper"
RSpec.describe("Health endpoint", type: :request) do
describe "GET /up" do
it "returns a successful response when database is healthy" do
get "/up"
expect(response).to(have_http_status(:ok))
expect(response.body).to(include("background-color: green"))
end
end
end