class Spy::Nest
def add(spy)
-
(self)
-
Parameters:
-
spy
(Constant
) --
def add(spy) if @constant_spies[spy.constant_name] raise AlreadyStubbedError, "#{spy.constant_name} has already been stubbed" else @constant_spies[spy.constant_name] = spy end self end