Add RSpec for high-level integration testing

This commit is contained in:
Eric Freese 2017-01-19 22:33:17 -07:00
parent af671fb406
commit e6591d5de0
5 changed files with 49 additions and 0 deletions

2
.rspec Normal file
View file

@ -0,0 +1,2 @@
--color
--require spec_helper

1
.ruby-version Normal file
View file

@ -0,0 +1 @@
2.3.1

4
Gemfile Normal file
View file

@ -0,0 +1,4 @@
source 'https://rubygems.org'
gem 'rspec'
gem 'rspec-wait'

29
Gemfile.lock Normal file
View file

@ -0,0 +1,29 @@
GEM
remote: https://rubygems.org/
specs:
diff-lcs (1.3)
rspec (3.5.0)
rspec-core (~> 3.5.0)
rspec-expectations (~> 3.5.0)
rspec-mocks (~> 3.5.0)
rspec-core (3.5.4)
rspec-support (~> 3.5.0)
rspec-expectations (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-mocks (3.5.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.5.0)
rspec-support (3.5.0)
rspec-wait (0.0.9)
rspec (>= 3, < 4)
PLATFORMS
ruby
DEPENDENCIES
rspec
rspec-wait
BUNDLED WITH
1.12.5

13
spec/spec_helper.rb Normal file
View file

@ -0,0 +1,13 @@
require 'rspec/wait'
RSpec.configure do |config|
config.expect_with :rspec do |expectations|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
end
config.mock_with :rspec do |mocks|
mocks.verify_partial_doubles = true
end
config.wait_timeout = 2
end