method
remove_stub
remove_stub(message)
public
Hide source
# File lib/spec/mocks/proxy.rb, line 68 def remove_stub(message) message = message.to_sym if stub_to_remove = @stubs.detect { |s| s.matches_name?(message) } reset_proxied_method(message) @stubs.delete(stub_to_remove) else raise MockExpectationError, "The method `#{message}` was not stubbed or was already unstubbed" end end