Add dummy specs
This commit is contained in:
parent
36c6b20122
commit
9cc56f43c9
3 changed files with 22 additions and 4 deletions
7
.gitignore
vendored
7
.gitignore
vendored
|
@ -6,7 +6,7 @@
|
|||
# git config --global core.excludesfile '~/.gitignore_global'
|
||||
|
||||
# Ignore bundler config.
|
||||
/.bundle
|
||||
/.bundle/
|
||||
|
||||
# Ignore all logfiles and tempfiles.
|
||||
/log/*
|
||||
|
@ -21,8 +21,9 @@
|
|||
/node_modules
|
||||
/yarn-error.log
|
||||
|
||||
/public/assets
|
||||
.byebug_history
|
||||
/public/assets/
|
||||
/.byebug_history
|
||||
/.rake_tasks~
|
||||
|
||||
# Ignore master key for decrypting credentials and more.
|
||||
/config/master.key
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
Rails.application.routes.draw do
|
||||
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
|
||||
root to: ->(_) { [200, {}, ['Hello, World!']] }
|
||||
end
|
||||
|
|
17
spec/requests/default_spec.rb
Normal file
17
spec/requests/default_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
require 'rails_helper'
|
||||
|
||||
RSpec.describe 'GET /' do
|
||||
before do
|
||||
get '/'
|
||||
end
|
||||
|
||||
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