mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
15 lines
354 B
Ruby
15 lines
354 B
Ruby
require 'spec_helper'
|
|
|
|
describe Spree::StoreController, type: :controller do
|
|
controller(Spree::StoreController) do
|
|
before_filter :unauthorized
|
|
def index
|
|
render text: ""
|
|
end
|
|
end
|
|
it "redirects to home when unauthorized" do
|
|
get :index
|
|
expect(response).to render_template("shared/unauthorized", layout: 'darkswarm')
|
|
end
|
|
end
|