Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 8ddbed720a
Fetching contributors…

Cannot retrieve contributors at this time

30 lines (25 sloc) 0.462 kb
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
Jump to Line
Something went wrong with that request. Please try again.