Adapt specs to the move of unauthorized route from the spree routes to the main app routes

This commit is contained in:
Luis Ramos
2020-06-27 17:43:57 +01:00
parent bf3150ddc8
commit 7f1797de58
15 changed files with 45 additions and 45 deletions

View File

@@ -20,7 +20,7 @@ describe Admin::ProxyOrdersController, type: :controller do
context 'as a regular user' do
it 'redirects to unauthorized' do
spree_put :cancel, params
expect(response).to redirect_to spree.unauthorized_path
expect(response).to redirect_to unauthorized_path
end
end
@@ -31,7 +31,7 @@ describe Admin::ProxyOrdersController, type: :controller do
it 'redirects to unauthorized' do
spree_put :cancel, params
expect(response).to redirect_to spree.unauthorized_path
expect(response).to redirect_to unauthorized_path
end
end
@@ -89,7 +89,7 @@ describe Admin::ProxyOrdersController, type: :controller do
context 'as a regular user' do
it 'redirects to unauthorized' do
spree_put :resume, params
expect(response).to redirect_to spree.unauthorized_path
expect(response).to redirect_to unauthorized_path
end
end
@@ -100,7 +100,7 @@ describe Admin::ProxyOrdersController, type: :controller do
it 'redirects to unauthorized' do
spree_put :resume, params
expect(response).to redirect_to spree.unauthorized_path
expect(response).to redirect_to unauthorized_path
end
end