diff options
| author | mo khan <mo@mokhan.ca> | 2014-08-14 22:32:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-08-14 22:32:46 -0600 |
| commit | d47f27bf34419a0635eebe3f844621784b2bfc19 (patch) | |
| tree | 3bbd05d4ec2dbe0dc6ee6e70b1fc181a02c7fd99 /spec/controllers | |
| parent | 4067db972ca97dad335170e21906ea77c1f4564e (diff) | |
change usages of new_session_path with login_path
Diffstat (limited to 'spec/controllers')
| -rw-r--r-- | spec/controllers/my/cakes_controller_spec.rb | 2 | ||||
| -rw-r--r-- | spec/controllers/my/passwords_controller_spec.rb | 2 | ||||
| -rw-r--r-- | spec/controllers/sessions_controller_spec.rb | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/spec/controllers/my/cakes_controller_spec.rb b/spec/controllers/my/cakes_controller_spec.rb index 4e1bb0da..f55ed4ff 100644 --- a/spec/controllers/my/cakes_controller_spec.rb +++ b/spec/controllers/my/cakes_controller_spec.rb @@ -16,7 +16,7 @@ describe My::CakesController do context "when not logged in" do it "redirects you to the home page" do get :index - response.should redirect_to(new_session_path) + response.should redirect_to(login_path) end end end diff --git a/spec/controllers/my/passwords_controller_spec.rb b/spec/controllers/my/passwords_controller_spec.rb index 5512c690..56251d48 100644 --- a/spec/controllers/my/passwords_controller_spec.rb +++ b/spec/controllers/my/passwords_controller_spec.rb @@ -7,7 +7,7 @@ describe My::PasswordsController do it "should redirect you to the login page" do put :update, :id => user.id - response.should redirect_to(new_session_path) + response.should redirect_to(login_path) end end diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb index f1394225..648f852f 100644 --- a/spec/controllers/sessions_controller_spec.rb +++ b/spec/controllers/sessions_controller_spec.rb @@ -37,7 +37,7 @@ describe SessionsController do it "returns an error" do post :create, session: { username: 'x', password: 'y' } - expect(response).to redirect_to(new_session_path) + expect(response).to redirect_to(login_path) expect(flash[:error]).to_not be_empty end end |
