Sha256: 38a5dc134daaff43a134b1e4f2fa912b7a32997445324467d4c2db32bce8c996

Contents?: true

Size: 503 Bytes

Versions: 51

Compression:

Stored size: 503 Bytes

Contents

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

module Mocha
  
  module Standalone
    
    include AutoVerify
    include ParameterMatchers
    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

51 entries across 51 versions & 4 rubygems

Version Path
redcar-dev-0.12.1dev-java lib/openssl/mocha/lib/mocha/standalone.rb
redcar-dev-0.12.0dev-java lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.11 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.11.0dev lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.10 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.9.2 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.9.1 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.9.0 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.8.1 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.8 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.7 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.6.1 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.6 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.6.1dev lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5.1 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5 lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5.6dev lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5.5dev lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5.4dev lib/openssl/mocha/lib/mocha/standalone.rb
redcar-0.5.3dev lib/openssl/mocha/lib/mocha/standalone.rb