mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Remove dead code from usersregistration (signup calls are always ajax) and remove application.html.erb (spree frontend default layout) because this usersregistration was the last bit of OFN code to use it
This commit is contained in:
@@ -39,9 +39,6 @@ class UserRegistrationsController < Spree::UserRegistrationsController
|
||||
def render_error(errors = {})
|
||||
clean_up_passwords(resource)
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
render :new
|
||||
end
|
||||
format.js do
|
||||
render json: errors, status: :unauthorized
|
||||
end
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
<%= render :file => 'spree/layouts/spree_application' %>
|
||||
@@ -60,14 +60,6 @@ describe UserRegistrationsController, type: :controller do
|
||||
end
|
||||
end
|
||||
|
||||
context "when registration fails" do
|
||||
it "renders new" do
|
||||
spree_post :create, spree_user: {}
|
||||
expect(response.status).to eq(200)
|
||||
expect(response).to render_template "spree/user_registrations/new"
|
||||
end
|
||||
end
|
||||
|
||||
context "when registration succeeds" do
|
||||
context "when referer is not '/checkout'" do
|
||||
it "redirects to root" do
|
||||
|
||||
Reference in New Issue
Block a user