Sha256: 9cce6b2523276f6bdb9fc96580713595881ed4f31cf354af016260d09aca6999

Contents?: true

Size: 590 Bytes

Versions: 8

Compression:

Stored size: 590 Bytes

Contents

require 'rr'

RSpec.configuration.backtrace_exclusion_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)

module RSpec
  module Core
    # @private
    module MockingAdapters
      # @private
      module RR
        def self.framework_name; :rr end

        include ::RR::Extensions::InstanceMethods

        def setup_mocks_for_rspec
          ::RR::Space.instance.reset
        end

        def verify_mocks_for_rspec
          ::RR::Space.instance.verify_doubles
        end

        def teardown_mocks_for_rspec
          ::RR::Space.instance.reset
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
rspec-core-3.0.4 lib/rspec/core/mocking_adapters/rr.rb
rspec-core-3.0.3 lib/rspec/core/mocking_adapters/rr.rb
rspec-core-3.0.2 lib/rspec/core/mocking_adapters/rr.rb
whos_dated_who-0.1.0 vendor/bundle/gems/rspec-core-3.0.1/lib/rspec/core/mocking_adapters/rr.rb
whos_dated_who-0.0.1 vendor/bundle/gems/rspec-core-3.0.1/lib/rspec/core/mocking_adapters/rr.rb
rspec-core-3.0.1 lib/rspec/core/mocking_adapters/rr.rb
rspec-core-3.0.0 lib/rspec/core/mocking_adapters/rr.rb
rspec-core-3.0.0.rc1 lib/rspec/core/mocking_adapters/rr.rb