Sha256: 3c85e9c33d8ea3820dc5930dc3304378452a110a53a58fcf299d0ea67c4ea781

Contents?: true

Size: 770 Bytes

Versions: 2

Compression:

Stored size: 770 Bytes

Contents

if webmachine_present?
  describe Appsignal::Hooks::WebmachineHook do
    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

2 entries across 2 versions & 1 rubygems

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