class RSpec::Mocks::MethodDouble

def remove_stub

def remove_stub
  raise_method_not_stubbed_error if stubs.empty?
  expectations.empty? ? reset : stubs.clear
end