Sha256: 7319e209448f09736ca64a8e0169c2f0f37f6e0b70ce91db8815839156fa09d7

Contents?: true

Size: 677 Bytes

Versions: 14

Compression:

Stored size: 677 Bytes

Contents

# frozen_string_literal: true
RSpec.configure do |config|
  config.around(:each, :verify => false) do |example|
    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
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspeckled-0.0.30 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.29 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.28 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.27 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.26 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.25 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.24 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.23 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.22 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.21 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.20 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.19 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.18 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.17 lib/rspeckled/plugins/mocks.rb