Sha256: dab91a057995c3188c44a8d40ab38b0a0e0e9d376d54b5bdc000d874701ff309
Contents?: true
Size: 449 Bytes
Versions: 18
Compression:
Stored size: 449 Bytes
Contents
module Rspec module Mocks class Space def add(obj) mocks << obj unless mocks.detect {|m| m.equal? obj} end def verify_all mocks.each do |mock| mock.rspec_verify end end def reset_all mocks.each do |mock| mock.rspec_reset end mocks.clear end private def mocks @mocks ||= [] end end end end
Version data entries
18 entries across 18 versions & 1 rubygems