# File lib/rspec/mocks/method_double.rb, line 259 def remove_single_stub(stub) stubs.delete(stub) restore_original_method if stubs.empty? && expectations.empty? end