Module: VCR::LibraryHooks::WebMock

Extended by:
WebMock, Helpers
Included in:
WebMock
Defined in:
lib/vcr/library_hooks/webmock.rb

Defined Under Namespace

Modules: Helpers Classes: RequestHandler

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers

request_headers_for, typed_request_for, vcr_request_for, vcr_response_for

Instance Attribute Details

#global_hook_disabledObject Also known as: global_hook_disabled?

Returns the value of attribute global_hook_disabled.



13
14
15
# File 'lib/vcr/library_hooks/webmock.rb', line 13

def global_hook_disabled
  @global_hook_disabled
end

Instance Method Details

#with_global_hook_disabledObject



16
17
18
19
20
21
22
23
24
# File 'lib/vcr/library_hooks/webmock.rb', line 16

def with_global_hook_disabled
  self.global_hook_disabled = true

  begin
    yield
  ensure
    self.global_hook_disabled = false
  end
end