Initial layout/commit.
FossilOrigin-Name: 5ccedce83232d9c4f5341866293f884fde8bcc9c1df2ea7407740d2d984fae9b
This commit is contained in:
commit
6a7bfb722f
17 changed files with 305 additions and 0 deletions
39
spec/lib/helper.rb
Normal file
39
spec/lib/helper.rb
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
# -*- ruby -*-
|
||||
# vim: set noet sta sw=4 ts=4 :
|
||||
# frozen_string_literal: true
|
||||
|
||||
|
||||
if ENV[ 'COVERAGE' ]
|
||||
require 'simplecov'
|
||||
SimpleCov.start
|
||||
end
|
||||
|
||||
require 'rspec'
|
||||
require 'mdbx'
|
||||
|
||||
|
||||
RSpec.configure do |config|
|
||||
config.expect_with :rspec do |expectations|
|
||||
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
||||
expectations.syntax = :expect
|
||||
end
|
||||
|
||||
config.mock_with( :rspec ) do |mock|
|
||||
mock.syntax = :expect
|
||||
mock.verify_partial_doubles = true
|
||||
end
|
||||
|
||||
config.disable_monkey_patching!
|
||||
config.example_status_persistence_file_path = "spec/.status"
|
||||
config.filter_run :focus
|
||||
config.filter_run_when_matching :focus
|
||||
config.order = :random
|
||||
config.profile_examples = 5
|
||||
config.run_all_when_everything_filtered = true
|
||||
# config.warnings = true
|
||||
|
||||
# config.include( Zyre::Testing )
|
||||
# config.include( Loggability::SpecHelpers )
|
||||
end
|
||||
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue