Sha256: b9b354a621a0474b2b15f4eac08e22e5f4deae3268b0d8dd0acfc4ca4ec21100

Contents?: true

Size: 786 Bytes

Versions: 13

Compression:

Stored size: 786 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

13 entries across 13 versions & 1 rubygems

Version Path
appsignal-2.0.6 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.5 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.5.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.1.0.alpha.3 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.1.0.alpha.2 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.1.0.alpha.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.4 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.3 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.2 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.0 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-2.0.0.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb
appsignal-1.4.0.beta.1 spec/lib/appsignal/hooks/webmachine_spec.rb