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.1.0.beta.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.1.0.beta.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.2.beta.4 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.2.beta.3 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.2.beta.2 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.2.beta.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.0 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-1.0.0.rc.1 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.14 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.13 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.12 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.11 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.10 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.9 spec/lib/appsignal/hooks/celluloid_spec.rb
appsignal-0.12.rc.8 spec/lib/appsignal/hooks/celluloid_spec.rb