Sha256: c49753a491c96bd3b624d1b263c73be9a3958c9295a44a255c2e8dc4246b6110

Contents?: true

Size: 782 Bytes

Versions: 1

Compression:

Stored size: 782 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(:all) { start_agent }

      its(:dependencies_present?) { should be_true }

      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_true

        expect(
          fsm.respond_to?(:handle_exceptions_without_appsignal, true)
        ).to be_true
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
appsignal-2.1.0.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb