Sha256: 63dfe3c8501276577fc48b6141e77215c50ad1176a7680b11af6e29358155556
Contents?: true
Size: 993 Bytes
Versions: 18
Compression:
Stored size: 993 Bytes
Contents
# frozen_string_literal: true describe Appsignal::Hooks::HttpHook do let(:options) { {} } before { start_agent(:options => options) } if DependencyHelper.http_present? context "with instrument_http_rb set to true" do describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_truthy } end it "installs the HTTP plugin" do expect(HTTP::Client.included_modules) .to include(Appsignal::Integrations::HttpIntegration) end end context "with instrument_http_rb set to false" do let(:options) { { :instrument_http_rb => false } } describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_falsy } end end else describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_falsy } end end end
Version data entries
18 entries across 18 versions & 1 rubygems