Commit a9490cce

mo khan <mo@mokhan.ca>
2014-09-02 15:55:31
remove old home controller.
1 parent 4c8b838
Changed files (4)
app/controllers/my/home_controller.rb
@@ -1,6 +0,0 @@
-module My
-  class HomeController < BaseController
-    def index
-    end
-  end
-end
app/views/my/home/index.html.erb
@@ -1,7 +0,0 @@
-<div class="row-fluid">
-  <div class="span2">
-    <%= render partial: "my/shared/my_nav" %>
-  </div>
-  <div class="span10">
-  </div>
-</div>
spec/controllers/my/home_controller_spec.rb
@@ -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
-
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