Sha256: 4e5129e37cc3c7df8336ee923763ada6a7b1f200ed34dcd231a9be00ce6dd00e
Contents?: true
Size: 871 Bytes
Versions: 432
Compression:
Stored size: 871 Bytes
Contents
describe Appsignal::Hooks::PassengerHook do context "with passenger" do before(:context) do module PhusionPassenger end end after(:context) { Object.send(:remove_const, :PhusionPassenger) } describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_truthy } end it "adds behavior to stopping_worker_process and starting_worker_process" do expect(PhusionPassenger).to receive(:on_event).with(:starting_worker_process) expect(PhusionPassenger).to receive(:on_event).with(:stopping_worker_process) Appsignal::Hooks::PassengerHook.new.install end end context "without passenger" do describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_falsy } end end end
Version data entries
432 entries across 432 versions & 1 rubygems