Files
openfoodnetwork/spec/controllers/spree/store_controller_spec.rb
2014-05-30 11:24:37 +10:00

15 lines
332 B
Ruby

require 'spec_helper'
describe Spree::StoreController do
controller(Spree::StoreController) do
before_filter :unauthorized
def index
render text: ""
end
end
it "redirects to home when unauthorized" do
get :index
response.should render_template("shared/unauthorized", layout: 'darkswarm')
end
end