summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authormo khan <mo@mokhan.ca>2014-09-02 09:55:31 -0600
committermo khan <mo@mokhan.ca>2014-09-02 09:55:31 -0600
commita9490cce5d8f0ecf2fa8dafdf53aa71218d6b90d (patch)
treee046ba5d6c44d6f781d5f27efdd28fa2f25a6b16 /spec
parent4c8b8389b45dc63b4e8ca0ea12d18446ce5a53e4 (diff)
remove old home controller.
Diffstat (limited to 'spec')
-rw-r--r--spec/controllers/my/home_controller_spec.rb23
-rw-r--r--spec/controllers/sessions_controller_spec.rb2
2 files changed, 1 insertions, 24 deletions
diff --git a/spec/controllers/my/home_controller_spec.rb b/spec/controllers/my/home_controller_spec.rb
deleted file mode 100644
index faecb9f3..00000000
--- a/spec/controllers/my/home_controller_spec.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require "rails_helper"
-
-describe My::HomeController do
- context "when logged in" do
- let(:user){ create(:user) }
- before { http_login(user) }
-
- describe "#index" do
- it "should let me int" do
- get :index
- expect(response).to be_success
- end
- end
- end
-
- context "when not logged in" do
- it "redirects you to the home page" do
- get :index
- response.should redirect_to(login_path)
- end
- end
-end
-
diff --git a/spec/controllers/sessions_controller_spec.rb b/spec/controllers/sessions_controller_spec.rb
index a85e4e62..7de183d9 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(anchor: 'cakes'))
+ expect(response).to redirect_to(my_root_path)
end
end
end