diff --git a/app/controllers/home_controller.rb b/app/controllers/home_controller.rb new file mode 100644 index 0000000..6690f6c --- /dev/null +++ b/app/controllers/home_controller.rb @@ -0,0 +1,6 @@ +# frozen_string_literal: true + +class HomeController < ApplicationController + # GET / + def show; end +end diff --git a/app/views/home/show.html.erb b/app/views/home/show.html.erb new file mode 100644 index 0000000..e69de29 diff --git a/config/routes.rb b/config/routes.rb index a128e1e..8590439 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true Rails.application.routes.draw do - root to: ->(_) { [200, {}, ['Hello, World!']] } + root to: 'home#show' resources :membership_applications, only: :new end diff --git a/spec/requests/default_spec.rb b/spec/requests/root_spec.rb similarity index 71% rename from spec/requests/default_spec.rb rename to spec/requests/root_spec.rb index 9783585..6919efb 100644 --- a/spec/requests/default_spec.rb +++ b/spec/requests/root_spec.rb @@ -10,8 +10,4 @@ RSpec.describe 'GET /' do specify do expect(response).to have_http_status :ok end - - specify do - expect(response.body).to match 'Hello, World!' - end end