diff options
| author | mo khan <mo@mokhan.ca> | 2021-12-21 10:04:34 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2021-12-21 10:04:34 -0700 |
| commit | 1da7737f8970000fc7bd592c19aa6c647d49c347 (patch) | |
| tree | 8374631214504ecdae929013638d5d73dc80e889 /spec/spec_helper.rb | |
| parent | 752ec386ab387a76f60b2571d43c42faf71e2e29 (diff) | |
refactor: move files to lib/spec/bin
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..bfb24e2 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,23 @@ +require "webmock/rspec" +require "shogun" + +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + config.filter_run_when_matching :focus + config.disable_monkey_patching! + config.warnings = true + config.order = :random + Kernel.srand config.seed +end |
