Sha256: a3db64efecd031aa53eb9d5edfce3740a133134078059a86b952399907851c5d

Contents?: true

Size: 441 Bytes

Versions: 14

Compression:

Stored size: 441 Bytes

Contents

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

module Rspec
  module Core
    module Mocking
      module WithRspec
        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
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
rspec-core-2.0.0.beta.4 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.beta.3 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.beta.2 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.beta.1 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a10 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a9 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a8 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a7 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a6 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a5 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a4 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a3 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a2 lib/rspec/core/mocking/with_rspec.rb
rspec-core-2.0.0.a1 lib/rspec/core/mocking/with_rspec.rb