Sha256: 908a7b9a4ea19bf7a1ea8387162ab691bd984c0ac8deb8ff373c817ac68e552b
Contents?: true
Size: 438 Bytes
Versions: 5
Compression:
Stored size: 438 Bytes
Contents
module DevelopWithPassion module Fakes module ArgBehaviour attr_accessor :return_value,:times_called def and_return(item) @return_value = item end def capture_args(args) @times_called += 1 @called_args = args end def matches?(args) return @args == args end def was_called_with?(args) return @called_args == args end end end end
Version data entries
5 entries across 5 versions & 1 rubygems