Sha256: 4910ef1b78de0a17d8b9b6a39e418e4cbcf565c697bfa75e0e67948142fb65d1
Contents?: true
Size: 821 Bytes
Versions: 202
Compression:
Stored size: 821 Bytes
Contents
describe Appsignal::Hooks::CelluloidHook do context "with celluloid" do before :context do module Celluloid def self.shutdown end end Appsignal::Hooks::CelluloidHook.new.install end after :context do Object.send(:remove_const, :Celluloid) end describe "#dependencies_present?" do subject { described_class.new.dependencies_present? } it { is_expected.to be_truthy } end specify { expect(Appsignal).to receive(:stop) } specify { expect(Celluloid).to receive(:shutdown_without_appsignal) } after do Celluloid.shutdown end end context "without celluloid" do 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