From 50b84c4ced3bc28d656c6f94eeaa6b36d1f7d83c Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Thu, 1 Dec 2016 18:48:25 +1100 Subject: [PATCH] Fixing typo in SO spec description --- spec/controllers/admin/standing_orders_controller_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/controllers/admin/standing_orders_controller_spec.rb b/spec/controllers/admin/standing_orders_controller_spec.rb index bb3043d7ec..367be2c59d 100644 --- a/spec/controllers/admin/standing_orders_controller_spec.rb +++ b/spec/controllers/admin/standing_orders_controller_spec.rb @@ -16,7 +16,7 @@ describe Admin::StandingOrdersController, type: :controller do let(:params) { { format: :html } } context 'as a regular user' do - it 'renders the index page' do + it 'redirects to unauthorized' do spree_get :index, params expect(response).to redirect_to spree.unauthorized_path end @@ -38,7 +38,7 @@ describe Admin::StandingOrdersController, type: :controller do let(:params) { { format: :json } } context 'as a regular user' do - it 'renders the index page' do + it 'redirects to unauthorized' do spree_get :index, params expect(response).to redirect_to spree.unauthorized_path end