diff options
| author | mo khan <mo@mokhan.ca> | 2014-04-09 21:53:46 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-04-09 21:53:46 -0600 |
| commit | cd27ffa4fd97d02463b097f8a68a53c5b3c7f5a8 (patch) | |
| tree | 2c05b69223b2d3a0e12b23b4ad97fcca38eba35f /spec/controllers/application_controller_spec.rb | |
| parent | 15dc7e8f6af0afa05913eb3648a5b03c16b1db25 (diff) | |
redirect to login when not signed in.
Diffstat (limited to 'spec/controllers/application_controller_spec.rb')
| -rw-r--r-- | spec/controllers/application_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/application_controller_spec.rb b/spec/controllers/application_controller_spec.rb index 6ef6c9e..52d98e3 100644 --- a/spec/controllers/application_controller_spec.rb +++ b/spec/controllers/application_controller_spec.rb @@ -26,14 +26,14 @@ describe ApplicationController do context "when not signed in" do it "boots you out when their is no session_id" do get :index - response.status.should == 401 + response.should redirect_to(new_login_path) end it "boots you out when the session id is not known" do Session.stub(:find).with(100).and_raise(ActiveRecord::RecordNotFound) get :index, {}, session_id: 100 - response.status.should == 401 + response.should redirect_to(new_login_path) end end end |
