diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 0000000..95f2992 --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,4 @@ +class HomeController < ApplicationController + def index + end +end diff --git a/app/views/home/index.html.slim b/app/views/home/index.html.slim new file mode 100644 index 0000000..15ecd50 --- /dev/null +++ b/app/views/home/index.html.slim @@ -0,0 +1,2 @@ +h1 Home#index +p Find me in app/views/home/index.html.slim diff --git a/config/routes.rb b/config/routes.rb index fc2791d..03b07dc 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,9 @@ Rails.application.routes.draw do + get 'home/index' + devise_for :users + + root 'home#index' # The priority is based upon order of creation: first created -> highest priority. # See how all your routes lay out with "rake routes". diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb new file mode 100644 index 0000000..375f768 --- /dev/null +++ b/spec/controllers/home_controller_spec.rb @@ -0,0 +1,12 @@ +require 'rails_helper' + +RSpec.describe HomeController, :type => :controller do + + describe "GET index" do + it "returns http success" do + get :index + expect(response).to be_success + end + end + +end