# frozen_string_literal: true

module PartialDoubleVerificationExampleGroup
  extend ActiveSupport::Concern

  included do
    around do |example|
      without_partial_double_verification { example.run }
    end
  end
end

RSpec.configure do |config|
  config.include PartialDoubleVerificationExampleGroup,
                 partial_double_verification: false
end

Add RSpec tag to disble partial double verification
Add RSpec tag to disble partial double verification

Adds `partial_double_verification` RSpec meta-tag, that, when set to
false, disables the partial double verification for the example.
Useful when testing unimplemented mocks like user-defined hooks.
