summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-07-24 11:07:32 -0700
committerTim Smith <tsmith@chef.io>2018-07-24 11:07:32 -0700
commitd6d17615456bf8deff28355534826be136f857fe (patch)
treebd69c0d73bce2941d60eb4a5ff25162a4989dfd5 /spec
parentb89de2079d884b254586a66f8dc5e6d89b57cdee (diff)
downloadmixlib-cli-d6d17615456bf8deff28355534826be136f857fe.tar.gz
Expand config in rspec helper
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec')
-rw-r--r--spec/spec_helper.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 13432c6..f83776e 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -8,6 +8,15 @@ class TestCLI
end
RSpec.configure do |config|
+ # 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