Sha256: 26060319d013a2690db08cc9b7f7645f5ea26e1b84b303de433b1efe5a92ca79
Contents?: true
Size: 1.02 KB
Versions: 202
Compression:
Stored size: 1.02 KB
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(:context) { start_agent } describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_truthy } end 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_truthy expect( fsm.respond_to?(:handle_exceptions_without_appsignal, true) ).to be_truthy end end else describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_falsy } end end end
Version data entries
202 entries across 202 versions & 1 rubygems