Sha256: 26060319d013a2690db08cc9b7f7645f5ea26e1b84b303de433b1efe5a92ca79

Contents?: true

Size: 1.02 KB

Versions: 202

Compression:

Stored size: 1.02 KB

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 "should include the run alias methods" do
        expect(fsm).to respond_to(:run_with_appsignal)
        expect(fsm).to respond_to(:run_without_appsignal)
      end

      it "should include the handle_exceptions alias methods" do
        expect(
          fsm.respond_to?(:handle_exceptions_with_appsignal, true)
        ).to be_truthy

        expect(
          fsm.respond_to?(:handle_exceptions_without_appsignal, true)
        ).to be_truthy
      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

202 entries across 202 versions & 1 rubygems

Version Path
appsignal-2.11.0.alpha.2 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.11.0.alpha.2-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.11.0.alpha.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.11.0.alpha.1-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.9 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.9-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.9.beta.1-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.9.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.8 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.8-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.7-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.7 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.6-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.6 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.6.beta.1-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.6.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.5-java spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.5 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.4 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.10.4-java spec/lib/appsignal/hooks/webmachine_spec.rb