Sha256: 1d64555631221f3d2f045dad0602d6922b1c86cf7f6b02b70fa27d0d1be74a27

Contents?: true

Size: 487 Bytes

Versions: 40

Compression:

Stored size: 487 Bytes

Contents

require 'spec/mocks/framework'
require 'spec/mocks/extensions'

module Spec
  module Adapters
    unless defined?(MockFramework)
      module MockFramework
        include Spec::Mocks::ExampleMethods
        def setup_mocks_for_rspec
          $rspec_mocks ||= Spec::Mocks::Space.new
        end
        def verify_mocks_for_rspec
          $rspec_mocks.verify_all
        end
        def teardown_mocks_for_rspec
          $rspec_mocks.reset_all
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 11 rubygems

Version Path
rango-0.0.6 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
rango-0.1.pre vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
pupu-0.0.1 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
media-path-0.1 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
simple-templater-0.0.1 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
middleman-0.10.17 vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
middleman-0.10.16 vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
middleman-0.10.15 vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
rackjour-0.1.8 vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
middleman-0.10.14 vendor/gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
ageweke-rspec-1.2.9 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.9 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.7 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.8 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.1 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.2 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.3 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.5 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.6 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.2.4 lib/spec/adapters/mock_frameworks/rspec.rb