Skip to content

Commit 63fc06c

Browse files
committed
Add route and empty view for GET /users/finish_sign_up
1 parent 4e093f2 commit 63fc06c

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

dashboard/app/controllers/registrations_controller.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,12 @@ def update
4949
respond_to_account_update(successfully_updated)
5050
end
5151

52+
#
53+
# GET /users/finish_sign_up
54+
#
55+
def finish_sign_up
56+
end
57+
5258
def create
5359
Retryable.retryable on: [Mysql2::Error, ActiveRecord::RecordNotUnique], matching: /Duplicate entry/ do
5460
super

dashboard/app/views/devise/registrations/finish_sign_up.html.haml

Whitespace-only changes.

dashboard/config/routes.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@
134134
devise_scope :user do
135135
get '/oauth_sign_out/:provider', to: 'sessions#oauth_sign_out', as: :oauth_sign_out
136136
patch '/dashboardapi/users', to: 'registrations#update'
137+
get '/users/finish_sign_up', to: 'registrations#finish_sign_up'
137138
patch '/users/upgrade', to: 'registrations#upgrade'
138139
patch '/users/set_age', to: 'registrations#set_age'
139140
patch '/users/email', to: 'registrations#set_email'
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
require 'test_helper'
2+
3+
module RegistrationsControllerTests
4+
#
5+
# Tests over GET /users/finish_sign_up
6+
#
7+
class FinishSignUpTest < ActionDispatch::IntegrationTest
8+
test "responds with success" do
9+
get '/users/finish_sign_up'
10+
assert_response :success
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)