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.0.0.alpha.pre.1 spec/support/disabling_stub.rb
faraday-1.8.0 spec/support/disabling_stub.rb
faraday-1.7.2 spec/support/disabling_stub.rb
faraday-1.7.1 spec/support/disabling_stub.rb
tdiary-5.1.7 vendor/bundle/ruby/3.0.0/gems/faraday-1.7.0/spec/support/disabling_stub.rb
tdiary-5.1.7 vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/support/disabling_stub.rb
mx-platform-ruby-0.4.0 vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/disabling_stub.rb
mx-platform-ruby-0.3.2 vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/disabling_stub.rb
mx-platform-ruby-0.3.1 vendor/bundle/ruby/2.6.0/gems/faraday-1.7.0/spec/support/disabling_stub.rb
faraday-1.7.0 spec/support/disabling_stub.rb
faraday-1.6.0 spec/support/disabling_stub.rb
faraday-1.5.1 spec/support/disabling_stub.rb
faraday-1.5.0 spec/support/disabling_stub.rb
faraday-1.4.3 spec/support/disabling_stub.rb
passbase-1.3.0 vendor/bundle/ruby/2.7.0/gems/faraday-1.4.2/spec/support/disabling_stub.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/faraday-1.1.0/spec/support/disabling_stub.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/faraday-1.2.0/spec/support/disabling_stub.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/tdiary-5.1.4/vendor/bundle/ruby/2.7.0/gems/faraday-1.1.0/spec/support/disabling_stub.rb
tdiary-5.1.6 vendor/bundle/ruby/3.0.0/gems/faraday-1.4.2/spec/support/disabling_stub.rb
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/2.7.0/gems/faraday-1.3.0/spec/support/disabling_stub.rb