mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
15 lines
349 B
Ruby
15 lines
349 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.status).to eq 401
|
|
expect(response).to render_template("shared/unauthorized", layout: 'darkswarm')
|
|
end
|
|
end
|
|
end
|