diff options
author | Jared Norman <jared@super.gd> | 2018-12-30 17:53:23 -0800 |
---|---|---|
committer | Jared Norman <jared@super.gd> | 2018-12-30 17:53:23 -0800 |
commit | 642d309135b21c54d55148ae90adf52026f3ad6c (patch) | |
tree | 05f0087119a7f3471918f1378a88b5068ffb2cbf /spec | |
parent | dafd34cf408576839157ce6aa81d8863c448ad4b (diff) |
Bring in everyone's favourite RSpec options
Diffstat (limited to 'spec')
-rw-r--r-- | spec/spec_helper.rb | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index a9a704f..f30af7b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -2,13 +2,15 @@ require "bundler/setup" require "super_good/solidus_taxjar" RSpec.configure do |config| - # Enable flags like --only-failures and --next-failure - config.example_status_persistence_file_path = ".rspec_status" - - # Disable RSpec exposing methods globally on `Module` and `main` - config.disable_monkey_patching! - config.expect_with :rspec do |c| c.syntax = :expect end + + config.disable_monkey_patching! + config.filter_run :focus + config.run_all_when_everything_filtered = true + config.default_formatter = 'doc' if config.files_to_run.one? + + config.order = "random" + Kernel.srand config.seed end |