Sha256: 34ad046b72d0190c9bca3524fe4c8d24a03adb83730910349fcea4f180e5d858
Contents?: true
Size: 644 Bytes
Versions: 97
Compression:
Stored size: 644 Bytes
Contents
require 'spec_helper' describe Appsignal::Hooks::CelluloidHook do context "with celluloid" do before :all do module Celluloid def self.shutdown end end Appsignal::Hooks::CelluloidHook.new.install end after :all do Object.send(:remove_const, :Celluloid) end its(:dependencies_present?) { should be_true } specify { expect(Appsignal).to receive(:stop) } specify { expect(Celluloid).to receive(:shutdown_without_appsignal) } after do Celluloid.shutdown end end context "without celluloid" do its(:dependencies_present?) { should be_false } end end
Version data entries
97 entries across 97 versions & 1 rubygems