equal
deleted
inserted
replaced
|
1 #!/usr/bin/ruby |
|
2 # coding: utf-8 |
|
3 # vim: set nosta noet ts=4 sw=4: |
|
4 |
|
5 require 'pathname' |
|
6 |
|
7 BASEDIR = Pathname( __FILE__ ).dirname.parent |
|
8 LIBDIR = BASEDIR + 'lib' |
|
9 |
|
10 $LOAD_PATH.unshift( LIBDIR.to_s ) |
|
11 |
|
12 # SimpleCov test coverage reporting; enable this using the :coverage rake task |
|
13 require 'simplecov' if ENV['COVERAGE'] |
|
14 |
|
15 require 'loggability' |
|
16 require 'loggability/spechelpers' |
|
17 require 'configurability' |
|
18 require 'configurability/behavior' |
|
19 require 'rspec' |
|
20 |
|
21 require 'symphony' |
|
22 |
|
23 Loggability.format_with( :color ) if $stdout.tty? |
|
24 |
|
25 |
|
26 ### RSpec helper functions. |
|
27 module Loggability::SpecHelpers |
|
28 end |
|
29 |
|
30 |
|
31 ### Mock with RSpec |
|
32 RSpec.configure do |config| |
|
33 config.run_all_when_everything_filtered = true |
|
34 config.filter_run :focus |
|
35 # config.order = 'random' |
|
36 config.expect_with( :rspec ) |
|
37 config.mock_with( :rspec ) do |mock| |
|
38 mock.syntax = :expect |
|
39 end |
|
40 |
|
41 config.include( Loggability::SpecHelpers ) |
|
42 end |
|
43 |