1
0
Fork 0

Add action HomeController#show

This commit is contained in:
Alex Kotov 2018-11-23 23:57:09 +05:00
parent 2fb8f347de
commit 41b1c0bb04
No known key found for this signature in database
GPG Key ID: 4E831250F47DE154
4 changed files with 7 additions and 5 deletions

View File

@ -0,0 +1,6 @@
# frozen_string_literal: true
class HomeController < ApplicationController
# GET /
def show; end
end

View File

View 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

View File

@ -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