Sha256: cab6fb539fb22e029c29cb027e29f3e16e5644a1c4dccb1a6db543f3bb0acf69

Contents?: true

Size: 403 Bytes

Versions: 4

Compression:

Stored size: 403 Bytes

Contents

require 'rspec/mocks/framework'
require 'rspec/mocks/extensions'

module Rspec
  module Core
    module MockFrameworkAdapter

      include Rspec::Mocks::ExampleMethods
      def _setup_mocks
        $rspec_mocks ||= Rspec::Mocks::Space.new
      end
      def _verify_mocks
        $rspec_mocks.verify_all
      end
      def _teardown_mocks
        $rspec_mocks.reset_all
      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_rspec.rb
rspec-core-2.0.0.beta.7 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.beta.6 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.beta.5 lib/rspec/core/mocking/with_rspec.rb