diff options
| author | mo khan <mo@mokhan.ca> | 2014-11-22 20:40:37 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-11-22 20:40:37 -0700 |
| commit | 102b823bccaa31c3c64ddf0c22dc6e4f23f8b3a0 (patch) | |
| tree | ea3aea871a0f62c4889757113e67ce41984c89e2 /spec/controllers | |
| parent | a92ef07d7cbba63a44c4fef2f44b8976da5e4804 (diff) | |
change to my_dashboard_path.
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/registrations_controller_spec.rb | 2 | ||||
| -rw-r--r-- | spec/controllers/sessions_controller_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/registrations_controller_spec.rb b/spec/controllers/registrations_controller_spec.rb index 692500fd..9a9eaf63 100644 --- a/spec/controllers/registrations_controller_spec.rb +++ b/spec/controllers/registrations_controller_spec.rb @@ -10,7 +10,7 @@ describe RegistrationsController do post :create, user: { name: 'mo', email: 'mo@cakeside.com', password: 'password' } expect(User.count).to eql(1) - expect(response).to redirect_to(my_root_path) + expect(response).to redirect_to(my_dashboard_path) expect(cookies.signed[:raphael]).to_not be_nil expect(cookies.signed[:raphael]).to eql(user_session.access) end diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb index 7de183d9..63ca58ca 100644 --- a/spec/controllers/sessions_controller_spec.rb +++ b/spec/controllers/sessions_controller_spec.rb @@ -17,7 +17,7 @@ describe SessionsController do it "redirects to the dashboard" do get :new - expect(response).to redirect_to(my_root_path) + expect(response).to redirect_to(my_dashboard_path) end end end @@ -39,7 +39,7 @@ describe SessionsController do end it "redirects to the dashboard" do - expect(response).to redirect_to(my_root_path) + expect(response).to redirect_to(my_dashboard_path) end end |
