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-3.10.0-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.10.0 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.3-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.3 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.2-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.2 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.1 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.0-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.9.0 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.8.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.8.1 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.8.0-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.8.0 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.6-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.6 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.2-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.2 spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.1-java spec/lib/appsignal/hooks/mri_spec.rb
appsignal-3.7.1 spec/lib/appsignal/hooks/mri_spec.rb