mirror of
https://github.com/lostisland/faraday.git
synced 2025-10-04 00:02:03 -04:00
15 lines
205 B
Ruby
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
|