Sha256: a5393d82c38b0e39d89265af6d65e2bf24fb5b9bb1fcab5b74c9b48039d21876

Contents?: true

Size: 551 Bytes

Versions: 8

Compression:

Stored size: 551 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  %i[controller view].each do |type|
    config.around(:each, type: type) do |example|
      config.mock_with :rspec do |mocks|
        mocks.verify_partial_doubles = false
        example.run
        mocks.verify_partial_doubles = true
      end
    end
  end

  config.around(:each, disable: :verify_partial_doubles) do |example|
    config.mock_with :rspec do |mocks|
      mocks.verify_partial_doubles = false
      example.run
      mocks.verify_partial_doubles = true
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
archangel-0.3.0 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.8 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.7 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.6 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.5 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.4 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.3 lib/archangel/testing_support/support/verify_partial_doubles.rb
archangel-0.0.2 lib/archangel/testing_support/support/verify_partial_doubles.rb