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

Version Path
appsignal-1.4.0.alpha.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.4.0.alpha.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.0 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.0.beta.3 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.0.beta.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.3.0.beta.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.5 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.4 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.4.beta.4 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.4.beta.3 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.4.beta.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.4.beta.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.3 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.3.beta.3 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.3.beta.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.3.beta.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.2.1 spec/lib/appsignal/hooks/celluloid_spec.rb