Sha256: bca8e6bce71e9a8ccab4b15e9d1d4804202a291c9f5973ff36a74c10b154fdf1

Contents?: true

Size: 438 Bytes

Versions: 11

Compression:

Stored size: 438 Bytes

Contents

require 'mocha/auto_verify'
require 'mocha/setup_and_teardown'

module Mocha
  
  module Standalone
    
    include AutoVerify
    include SetupAndTeardown
    
    def mocha_setup
      setup_stubs
    end
    
    def mocha_verify(&block)
      verify_mocks(&block)
      verify_stubs(&block)
    end
    
    def mocha_teardown
      begin
        teardown_mocks
      ensure
        teardown_stubs
      end
    end
    
  end
  
end

Version data entries

11 entries across 11 versions & 4 rubygems

Version Path
greatseth-google-geo-2.0 vendor/mocha-0.4.0/lib/mocha/standalone.rb
greatseth-google-geo-2.1 vendor/mocha-0.4.0/lib/mocha/standalone.rb
greatseth-google-geo-2.2 vendor/mocha-0.4.0/lib/mocha/standalone.rb
google-geo-2.3 vendor/mocha-0.4.0/lib/mocha/standalone.rb
google-geo-2.1 vendor/mocha-0.4.0/lib/mocha/standalone.rb
google-geo-2.0 vendor/mocha-0.4.0/lib/mocha/standalone.rb
mocha-0.4.0 lib/mocha/standalone.rb
puppet-0.22.4 test/lib/mocha/standalone.rb
puppet-0.23.0 test/lib/mocha/standalone.rb
puppet-0.23.1 test/lib/mocha/standalone.rb
puppet-0.23.2 test/lib/mocha/standalone.rb