Add action HomeController#show
This commit is contained in:
parent
2fb8f347de
commit
41b1c0bb04
4 changed files with 7 additions and 5 deletions
6
app/controllers/home_controller.rb
Normal file
6
app/controllers/home_controller.rb
Normal file
|
@ -0,0 +1,6 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
class HomeController < ApplicationController
|
||||
# GET /
|
||||
def show; end
|
||||
end
|
0
app/views/home/show.html.erb
Normal file
0
app/views/home/show.html.erb
Normal file
|
@ -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
|
||||
|
|
|
@ -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
|
Reference in a new issue