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

Version Path
appsignal-0.12.rc.7 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.rc.6 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.rc.5 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.54 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.53 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.52 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.51 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.50 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.49 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.48 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.47 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.46 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.45 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.44 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.43 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.42 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.41 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.40 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.39 spec/lib/appsignal/integrations/celluloid_spec.rb
appsignal-0.12.beta.38 spec/lib/appsignal/integrations/celluloid_spec.rb