Sha256: 66722a3ac61462dd97b9dd3532a31b2711a1669a5b6bd5864c340a0db1292617
Contents?: true
Size: 462 Bytes
Versions: 6
Compression:
Stored size: 462 Bytes
Contents
module RSpec module Mocks # @api private 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
6 entries across 6 versions & 3 rubygems