Add action HomeController#show
This commit is contained in:
parent
2fb8f347de
commit
41b1c0bb04
|
@ -0,0 +1,6 @@
|
||||||
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
class HomeController < ApplicationController
|
||||||
|
# GET /
|
||||||
|
def show; end
|
||||||
|
end
|
|
@ -1,7 +1,7 @@
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
Rails.application.routes.draw do
|
Rails.application.routes.draw do
|
||||||
root to: ->(_) { [200, {}, ['Hello, World!']] }
|
root to: 'home#show'
|
||||||
|
|
||||||
resources :membership_applications, only: :new
|
resources :membership_applications, only: :new
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,8 +10,4 @@ RSpec.describe 'GET /' do
|
||||||
specify do
|
specify do
|
||||||
expect(response).to have_http_status :ok
|
expect(response).to have_http_status :ok
|
||||||
end
|
end
|
||||||
|
|
||||||
specify do
|
|
||||||
expect(response.body).to match 'Hello, World!'
|
|
||||||
end
|
|
||||||
end
|
end
|
Reference in New Issue