spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.3.5 vs spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.3.6.beta.1
- old
+ new
@@ -1,14 +1,11 @@
if webmachine_present?
describe Appsignal::Hooks::WebmachineHook do
context "with webmachine" do
- before(:all) do
- Appsignal::Hooks::WebmachineHook.new.install
- end
+ let(:fsm) { Webmachine::Decision::FSM.new(double(:trace? => false), double, double) }
+ before(:all) { start_agent }
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