Module: StubRequests::WebMock::StubRegistryExtension

Defined in:
lib/stub_requests/webmock/stub_registry_extension.rb

Overview

Module StubRegistryExtension extends WebMock::StubRegistry with recording of when a response was found and used for a WebMock::RequestStub

Author:

Since:

  • 0.1.2

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:

Since:

  • 0.1.2



26
27
28
29
30
31
# File 'lib/stub_requests/webmock/stub_registry_extension.rb', line 26

def self.included(base)
  base.class_eval do
    alias_method :request_stub_for_orig, :request_stub_for
    alias_method :request_stub_for, :request_stub_for_ext
  end
end