module Mocha::ObjectMethods

def unstub(*method_names)

Other tags:
    Example: Unstubbing multiple methods on a real (non-mock) object. -
    Example: Stubbing and unstubbing a method on a real (non-mock) object. -

Parameters:
  • method_names (Array) -- names of methods to unstub.
def unstub(*method_names)
  mockery = Mocha::Mockery.instance
  method_names.each do |method_name|
    method = stubba_method.new(stubba_object, method_name)
    mockery.stubba.unstub(method)
  end
end