Sha256: 893effdcd9cc6bbcc771574e5cce44c3fa3365618f62e648af2d51610346b37f

Contents?: true

Size: 744 Bytes

Versions: 192

Compression:

Stored size: 744 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(:context) { 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

192 entries across 192 versions & 1 rubygems

Version Path
appsignal-3.0.12-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.12 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.11-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.11 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.10-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.10 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.9-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.9 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.8-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.8 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.7-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.7 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.6-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.6 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.5-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.5 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.4-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.4 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.4.alpha.1-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-3.0.4.alpha.1 spec/lib/appsignal/hooks/webmachine_spec.rb