Sha256: 43a5b9c05a2d844849d2cf00d536895c7d8cb966f3322ed4cbc5c1d493b8eddc
Contents?: true
Size: 721 Bytes
Versions: 5
Compression:
Stored size: 721 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_extension) } 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
5 entries across 5 versions & 1 rubygems