# File lib/rspec/mocks/method_double.rb, line 169 def remove_stub raise_method_not_stubbed_error if stubs.empty? expectations.empty? ? reset : stubs.clear end