Sha256: 46fc3f8b1a17afab407a993eb36de2aaa01f4829d5d9f81ff0b061755867328f

Contents?: true

Size: 452 Bytes

Versions: 30

Compression:

Stored size: 452 Bytes

Contents

require File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "lib", "spec", "mocks"))

module Spec
  module Plugins
    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

Version data entries

30 entries across 30 versions & 5 rubygems

Version Path
spree-0.2.0 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.0.1 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.0.2 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.0.3.98.1 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.0.3.98 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.0 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.1.2 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.1.1 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.1.3 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb
typo-5.1 vendor/plugins/rspec/plugins/mock_frameworks/rspec.rb