Sha256: 8dad73305101c67e418d96a2b8fe5e5f265a9802a5bc30464be27e508c024b1e

Contents?: true

Size: 438 Bytes

Versions: 4

Compression:

Stored size: 438 Bytes

Contents

require 'rr'

Rspec.configuration.backtrace_clean_patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)

module Rspec
  module Core
    module MockFrameworkAdapter

      include RR::Extensions::InstanceMethods

      def _setup_mocks
        RR::Space.instance.reset
      end

      def _verify_mocks
        RR::Space.instance.verify_doubles
      end

      def _teardown_mocks
        RR::Space.instance.reset
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.8 lib/rspec/core/mocking/with_rr.rb
rspec-core-2.0.0.beta.7 lib/rspec/core/mocking/with_rr.rb
rspec-core-2.0.0.beta.6 lib/rspec/core/mocking/with_rr.rb
rspec-core-2.0.0.beta.5 lib/rspec/core/mocking/with_rr.rb