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:
luisramos0
2019-03-30 23:03:47 +00:00
parent 25fd6f2e78
commit ffd883e84d
3 changed files with 0 additions and 12 deletions

View File

@@ -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

View File

@@ -1 +0,0 @@
<%= render :file => 'spree/layouts/spree_application' %>

View File

@@ -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