Sha256: 6676d8d03580cdeb5e6c5317c811ddef58931fb152fef0c7f81b7085a0d98b3c

Contents?: true

Size: 647 Bytes

Versions: 19

Compression:

Stored size: 647 Bytes

Contents

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

19 entries across 19 versions & 2 rubygems

Version Path
rspectacular-0.70.8 lib/rspectacular/plugins/mocks.rb
rspeckled-0.0.16 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.15 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.14 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.13 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.12 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.11 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.10 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.9 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.8 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.7 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.6 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.5 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.4 lib/rspeckled/plugins/mocks.rb
rspectacular-0.70.7 lib/rspectacular/plugins/mocks.rb
rspeckled-0.0.3 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.2 lib/rspeckled/plugins/mocks.rb
rspeckled-0.0.1 lib/rspeckled/plugins/mocks.rb
rspectacular-0.70.6 lib/rspectacular/plugins/mocks.rb