Sha256: 3c1ebc2a1915dfddcadddac71712b22d5540b52330997e0d990336c88dc3e5b3

Contents?: true

Size: 505 Bytes

Versions: 10

Compression:

Stored size: 505 Bytes

Contents

require 'rubygems'
require 'rr'

patterns = ::Spec::Runner::QuietBacktraceTweaker::IGNORE_PATTERNS
patterns.push(RR::Errors::BACKTRACE_IDENTIFIER)

module Spec
  module Adapters
    module MockFramework
      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

Version data entries

10 entries across 10 versions & 3 rubygems

Version Path
dchelimsky-rspec-1.1.99.1 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.2 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.3 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.4 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.5 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.6 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.7 lib/spec/adapters/mock_frameworks/rr.rb
dchelimsky-rspec-1.1.99.8 lib/spec/adapters/mock_frameworks/rr.rb
newbamboo-evented-rspec-1.1.12 lib/adapters/mock_frameworks/rr.rb
newbamboo-rspec-1.1.12 lib/adapters/mock_frameworks/rr.rb