Commit the pile of initial work. Largely taken from company internal
repos, allowed to be newly released. Portions already in production, coverage still needs to be boosted. Enjoy. FossilOrigin-Name: 0f17fa483f55467bdf9e8f99dace58e6a90f5a8a7e595bdd79dfda5c92d16b7f
This commit is contained in:
commit
b18647f6a5
23 changed files with 2639 additions and 0 deletions
45
spec/helpers.rb
Normal file
45
spec/helpers.rb
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
#!/usr/bin/ruby
|
||||
# coding: utf-8
|
||||
# vim: set nosta noet ts=4 sw=4:
|
||||
|
||||
require 'pathname'
|
||||
|
||||
BASEDIR = Pathname( __FILE__ ).dirname.parent
|
||||
LIBDIR = BASEDIR + 'lib'
|
||||
|
||||
$LOAD_PATH.unshift( LIBDIR.to_s )
|
||||
|
||||
# SimpleCov test coverage reporting; enable this using the :coverage rake task
|
||||
require 'simplecov' if ENV['COVERAGE']
|
||||
|
||||
require 'timecop'
|
||||
require 'loggability'
|
||||
require 'loggability/spechelpers'
|
||||
require 'configurability'
|
||||
require 'configurability/behavior'
|
||||
require 'rspec'
|
||||
|
||||
require 'symphony'
|
||||
require 'symphony/metronome'
|
||||
|
||||
Loggability.format_with( :color ) if $stdout.tty?
|
||||
|
||||
|
||||
### RSpec helper functions.
|
||||
module Loggability::SpecHelpers
|
||||
end
|
||||
|
||||
|
||||
### Mock with RSpec
|
||||
RSpec.configure do |config|
|
||||
config.run_all_when_everything_filtered = true
|
||||
config.filter_run :focus
|
||||
# config.order = 'random'
|
||||
config.expect_with( :rspec )
|
||||
config.mock_with( :rspec ) do |mock|
|
||||
mock.syntax = :expect
|
||||
end
|
||||
|
||||
config.include( Loggability::SpecHelpers )
|
||||
end
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue