spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.3.6 vs spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.4.0.alpha.1

- old
+ new

@@ -1,11 +1,17 @@ +require 'spec_helper' + 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 } + 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