faraday/spec/support/disabling_stub.rb
Mattia 14b596fd30 Support standalone adapters (#941)
* Expose relevant specs to external adapters
2019-03-10 11:02:19 +01:00

15 lines
205 B
Ruby

# frozen_string_literal: true
# Allows to disable WebMock stubs
module DisablingStub
def disable
@disabled = true
end
def disabled?
@disabled
end
WebMock::RequestStub.prepend self
end