spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.4.0.alpha.2 vs spec/lib/appsignal/hooks/webmachine_spec.rb in appsignal-1.4.0.beta.1
- old
+ new
@@ -1,19 +1,13 @@
-require 'spec_helper'
-
-if webmachine_present?
-
- describe Appsignal::Hooks::WebmachineHook do
+describe Appsignal::Hooks::WebmachineHook do
+ if DependencyHelper.webmachine_present?
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
@@ -26,7 +20,6 @@
fsm.respond_to?(:handle_exceptions_without_appsignal, true)
).to be_true
end
end
end
-
end