Sha256: 272566d44936dbe916e50085c997a644bb622750916ddbc3d33f04a2ccdf6780
Contents?: true
Size: 711 Bytes
Versions: 25
Compression:
Stored size: 711 Bytes
Contents
require 'spec_helper' describe "Celluloid integration" do let(:file) { File.expand_path('lib/appsignal/integrations/celluloid.rb') } context "with celluloid" do before(:all) do module Celluloid def self.shutdown end end end before do load file 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 before(:all) { Object.send(:remove_const, :Celluloid) } specify { expect { ::Celluloid }.to raise_error(NameError) } specify { expect { load file }.to_not raise_error } end end
Version data entries
25 entries across 25 versions & 1 rubygems