Sha256: 5f4b8c0bf6c9679ecb8b445cbaadd99e59d4a553e9a8e53c97061cb8b535fc2f

Contents?: true

Size: 845 Bytes

Versions: 5

Compression:

Stored size: 845 Bytes

Contents

require 'spec_helper'

if webmachine_present?

  describe Appsignal::Hooks::WebmachineHook do
    context "with webmachine" do
      before(:all) do
        Appsignal::Hooks::WebmachineHook.new.install
      end

      its(:dependencies_present?) { should be_true }

      let(:fsm) { Webmachine::Decision::FSM.new(double(:trace? => false), double, double) }

      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

5 entries across 5 versions & 1 rubygems

Version Path
appsignal-1.4.0.alpha.2 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-1.4.0.alpha.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-1.3.2 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-1.3.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-1.3.0 spec/lib/appsignal/hooks/webmachine_spec.rb