summaryrefslogtreecommitdiff
path: root/spec/spec_helper.rb
blob: 6f3d7e2efe14a356c70af8d620fb51d65d660bb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
$TESTING = true
$:.push File.join(File.dirname(__FILE__), "..", "lib")

require "mixlib/cli"

class TestCLI
  include Mixlib::CLI
end

RSpec.configure do |config|
  # Use documentation format
  config.formatter = "doc"

  # Use color in STDOUT
  config.color = true

  # Use color not only in STDOUT but also in pagers and files
  config.tty = true

  # run the examples in random order
  config.order = :rand

  config.filter_run focus: true
  config.run_all_when_everything_filtered = true
  config.warnings = true
end