Method: VCR#turned_off

Defined in:
lib/vcr.rb

#turned_off(options = {})

This method returns an undefined value.

Turns VCR off for the duration of a block.

Parameters:

  • options (Hash) (defaults to: {})

    hash of options

Raises:

See Also:



270
271
272
273
274
275
276
277
278
# File 'lib/vcr.rb', line 270

def turned_off(options = {})
  turn_off!(options)

  begin
    yield
  ensure
    turn_on!
  end
end