Sha256: e175f4c3e8b4bb363bacc1e0ec39483111c2251c9d1a59bb3d111df8a865d349

Contents?: true

Size: 561 Bytes

Versions: 60

Compression:

Stored size: 561 Bytes

Contents

describe Appsignal::Hooks::MriHook do
  describe "#dependencies_present?" do
    subject { described_class.new.dependencies_present? }

    if DependencyHelper.running_jruby?
      it { is_expected.to be_falsy }
    else
      it { is_expected.to be_truthy }
    end
  end

  unless DependencyHelper.running_jruby?
    context "install" do
      before do
        Appsignal::Hooks.load_hooks
      end

      it "should be added to minutely probes" do
        expect(Appsignal::Probes.probes[:mri]).to be Appsignal::Probes::MriProbe
      end
    end
  end
end

Version data entries

60 entries across 60 versions & 1 rubygems

Version Path
appsignal-4.0.6-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.6 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.5-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.5 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.4-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.4 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.3-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.3 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.2-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.2 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.1 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.0-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.0 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.13.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.13.1 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.13.1.alpha.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.13.1.alpha.1 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.0.beta.2-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-4.0.0.beta.2 spec/lib/appsignal/hooks/mri_spec.rb