Files
openfoodnetwork/spec/requests/home_controller_spec.rb
Maikel Linke dcb6f4676d Remove all unnecessary spec_helper require statements
The `.rspec` file is doing this for us.
2026-01-21 12:35:34 +11:00

13 lines
327 B
Ruby

# frozen_string_literal: true
RSpec.describe HomeController 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