diff options
| author | mo khan <mo@mokhan.ca> | 2025-06-09 13:51:29 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-06-09 13:51:29 -0600 |
| commit | f42e23ad9847e11e86c77623eb77da3355b6d71b (patch) | |
| tree | 1f1cbb1c1ffe1b10f6bd188afd7ece427d8a0b96 /spec/spec_helper.rb | |
| parent | 14c7a0e3ebf77451662bbbac1915facdec0bca3f (diff) | |
test: switch to rspec
Diffstat (limited to 'spec/spec_helper.rb')
| -rw-r--r-- | spec/spec_helper.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb new file mode 100644 index 0000000..b7fab03 --- /dev/null +++ b/spec/spec_helper.rb @@ -0,0 +1,28 @@ +# frozen_string_literal: true + +require "net/hippie" +require "uri" + +Dir[File.join(Dir.pwd, 'spec/support/**/*.rb')].sort.each { |f| require f } + +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 + + config.shared_context_metadata_behavior = :apply_to_host_groups + config.filter_run_when_matching :focus + config.disable_monkey_patching! + config.warnings = true + + if config.files_to_run.one? + config.default_formatter = "doc" + end + + config.order = :random + Kernel.srand config.seed +end |
