Files
openfoodnetwork/spec/requests/home_controller_spec.rb
2025-05-14 11:04:01 +02:00

15 lines
366 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe HomeController, type: :request do
context "#unauthorized" do
it "renders the unauthorized template" do
get "/unauthorized"
expect(response).to have_http_status :unauthorized
expect(response).to render_template("shared/unauthorized", layout: 'darkswarm')
end
end
end