Sha256: 549d114a6dd9d803c978b69c784be03069ae125276fd559b7495274022fc25b6
Contents?: true
Size: 448 Bytes
Versions: 126
Compression:
Stored size: 448 Bytes
Contents
module Spec 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
126 entries across 126 versions & 22 rubygems