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
rspec-instructure-1.3.3 lib/spec/adapters/mock_frameworks/rspec.rb
radiant-1.0.0 ruby-debug/ruby/1.8/gems/rspec-1.3.2/lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.3.2 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.3.1 lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.3.1.rc lib/spec/adapters/mock_frameworks/rspec.rb
rspec-1.3.0 lib/spec/adapters/mock_frameworks/rspec.rb
hubbub-0.0.11 lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
hubbub-0.0.10 lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
hubbub-0.0.9 lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
hubbub-0.0.8 lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
hubbub-0.0.6 lib/vendor/plugins/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
simple-templater-0.0.1.4 gems/gems/rspec-1.2.9/lib/spec/adapters/mock_frameworks/rspec.rb
media-path-0.1.2 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
simple-templater-0.0.1.3 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
pupu-0.0.2.pre vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
media-path-0.1.1.pre vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
simple-templater-0.0.1.2 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
media-path-0.1.1 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
simple-templater-0.0.1.1 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb
pupu-0.0.2 vendor/rspec/lib/spec/adapters/mock_frameworks/rspec.rb