mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
13 lines
327 B
Ruby
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
|