1
0
Fork 0

Add dummy specs

This commit is contained in:
Alex Kotov 2018-11-23 01:15:08 +05:00
parent 36c6b20122
commit 9cc56f43c9
No known key found for this signature in database
GPG key ID: 4E831250F47DE154
3 changed files with 22 additions and 4 deletions

7
.gitignore vendored
View file

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

View file

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

View 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