Sha256: 6f6110b2a401725d68a0c8ff6d96e085986a1b1f7babd6fdb90d698043f1c735
Contents?: true
Size: 487 Bytes
Versions: 31
Compression:
Stored size: 487 Bytes
Contents
module Mocha module BlockMatchers class OptionalBlock def match?(_actual_block) true end def mocha_inspect; end end class BlockGiven def match?(actual_block) !actual_block.nil? end def mocha_inspect 'with block given' end end class NoBlockGiven def match?(actual_block) actual_block.nil? end def mocha_inspect 'with no block given' end end end end
Version data entries
31 entries across 31 versions & 2 rubygems