Sha256: 292a421fff71344d9d39e7af889c14aa78c3188c5744a61eae4a0af554871d63

Contents?: true

Size: 205 Bytes

Versions: 137

Compression:

Stored size: 205 Bytes

Contents

# 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

Version data entries

137 entries across 124 versions & 18 rubygems

Version Path
faraday-2.12.1 spec/support/disabling_stub.rb
moneykit-0.1.15 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.14 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
faraday-1.10.4 spec/support/disabling_stub.rb
faraday-2.12.0 spec/support/disabling_stub.rb
faraday-2.11.0 spec/support/disabling_stub.rb
moneykit-0.1.13 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.12 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.11 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
faraday-2.10.1 spec/support/disabling_stub.rb
blacklight-spotlight-3.6.0.beta8 vendor/bundle/ruby/3.2.0/gems/faraday-1.2.0/spec/support/disabling_stub.rb
faraday-2.10.0 spec/support/disabling_stub.rb
faraday-2.9.2 spec/support/disabling_stub.rb
faraday-2.9.1 spec/support/disabling_stub.rb
moneykit-0.1.10 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.9 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
avalara_sdk-24.2.29 vendor/bundle/ruby/2.7.0/gems/faraday-1.10.3/spec/support/disabling_stub.rb
moneykit-0.1.6 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.5 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb
moneykit-0.1.4 vendor/bundle/ruby/3.2.0/gems/faraday-2.7.12/spec/support/disabling_stub.rb