summaryrefslogtreecommitdiff
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
parent4c8b8389b45dc63b4e8ca0ea12d18446ce5a53e4 (diff)
remove old home controller.
-rw-r--r--app/controllers/my/home_controller.rb6
-rw-r--r--app/views/my/home/index.html.erb7
-rw-r--r--spec/controllers/my/home_controller_spec.rb23
-rw-r--r--spec/controllers/sessions_controller_spec.rb2
4 files changed, 1 insertions, 37 deletions
diff --git a/app/controllers/my/home_controller.rb b/app/controllers/my/home_controller.rb
deleted file mode 100644
index 0d8255eb..00000000
--- a/app/controllers/my/home_controller.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-module My
- class HomeController < BaseController
- def index
- end
- end
-end
diff --git a/app/views/my/home/index.html.erb b/app/views/my/home/index.html.erb
deleted file mode 100644
index 62652b9e..00000000
--- a/app/views/my/home/index.html.erb
+++ /dev/null
@@ -1,7 +0,0 @@
-<div class="row-fluid">
- <div class="span2">
- <%= render partial: "my/shared/my_nav" %>
- </div>
- <div class="span10">
- </div>
-</div>
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