Sha256: 30ff4c90e9e48e986309acb710e9ed730cf69804ec9dbf831c33e7b6c0341c65

Contents?: true

Size: 542 Bytes

Versions: 6

Compression:

Stored size: 542 Bytes

Contents

describe Appsignal::Hooks::NetHttpHook do
  before(:context) { start_agent }

  describe "#dependencies_present?" do
    subject { described_class.new.dependencies_present? }

    context "with Net::HTTP instrumentation enabled" do
      it { is_expected.to be_truthy }
    end

    context "with Net::HTTP instrumentation disabled" do
      before { Appsignal.config.config_hash[:instrument_net_http] = false }
      after { Appsignal.config.config_hash[:instrument_net_http] = true }

      it { is_expected.to be_falsy }
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
appsignal-3.11.0-java spec/lib/appsignal/hooks/net_http_spec.rb
appsignal-3.11.0 spec/lib/appsignal/hooks/net_http_spec.rb
appsignal-3.10.0-java spec/lib/appsignal/hooks/net_http_spec.rb
appsignal-3.10.0 spec/lib/appsignal/hooks/net_http_spec.rb
appsignal-3.9.3-java spec/lib/appsignal/hooks/net_http_spec.rb
appsignal-3.9.3 spec/lib/appsignal/hooks/net_http_spec.rb