Sha256: 1234242dcf328d0ff2c3058dc8178c406b9171ac768b9b688c872e9579008191

Contents?: true

Size: 734 Bytes

Versions: 38

Compression:

Stored size: 734 Bytes

Contents

describe Appsignal::Hooks::WebmachineHook do
  if DependencyHelper.webmachine_present?
    context "with webmachine" do
      let(:fsm) { Webmachine::Decision::FSM.new(double(:trace? => false), double, double) }
      before { start_agent }

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

        it { is_expected.to be_truthy }
      end

      it "adds behavior to Webmachine::Decision::FSM" do
        expect(fsm.class.ancestors.first).to eq(Appsignal::Integrations::WebmachineIntegration)
      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

38 entries across 38 versions & 1 rubygems

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