Sha256: 840d784ab523c2d2c72f78928f346c838da77ddff87126be6b6bc1222afd7b88
Contents?: true
Size: 482 Bytes
Versions: 50
Compression:
Stored size: 482 Bytes
Contents
module Mocha module ParameterMatchers # :call-seq: anything -> parameter_matcher # # Matches any object. # object = mock() # object.expects(:method_1).with(anything) # object.method_1('foo') # # no error raised def anything Anything.new end class Anything # :nodoc: def ==(parameter) return true end def mocha_inspect "anything" end end end end
Version data entries
50 entries across 50 versions & 4 rubygems