Sha256: 5b5a114fd97dae9cf42fce2a0c543c594df0f30b27f1478b5d1f53cf71716c48

Contents?: true

Size: 836 Bytes

Versions: 13

Compression:

Stored size: 836 Bytes

Contents

# frozen_string_literal: true

RSpec.configure do |config|
  config.around(:each, :verify => false) do |example|
    config.rspeckled_logger.debug("Around Each  - Start - #{__FILE__}")

    verify_partial  = ::RSpec::Mocks.configuration.instance_variable_get(:@verify_partial_doubles)
    verify_constant = ::RSpec::Mocks.configuration.instance_variable_get(:@verify_doubled_constant_names)

    ::RSpec::Mocks.configuration.verify_partial_doubles        = example.metadata[:verify]
    ::RSpec::Mocks.configuration.verify_doubled_constant_names = example.metadata[:verify]

    example.run

    ::RSpec::Mocks.configuration.verify_partial_doubles        = verify_partial
    ::RSpec::Mocks.configuration.verify_doubled_constant_names = verify_constant

    config.rspeckled_logger.debug("Around Each  - End   - #{__FILE__}")
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rspeckled-2.0.1 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-2.0.0 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.4.0 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.3.1 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.3.0 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.2.1 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.2.0 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.1.3 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.1.2 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.1.1 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.1.0 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.0.5 lib/rspeckled/plugins/hooks/rspec_mocks.rb
rspeckled-1.0.4 lib/rspeckled/plugins/hooks/rspec_mocks.rb