Sha256: c7d01d0c13f8b60eb6de2d8bd654af073d1cc38491b86c7d81878a15889377b8

Contents?: true

Size: 686 Bytes

Versions: 97

Compression:

Stored size: 686 Bytes

Contents

require 'spec_helper'

describe Appsignal::Hooks::PassengerHook do
  context "with passenger" do
    before(:all) do
      module PhusionPassenger
      end
    end
    after(:all) { Object.send(:remove_const, :PhusionPassenger) }

    its(:dependencies_present?) { should be_true }

    it "adds behavior to stopping_worker_process and starting_worker_process" do
      PhusionPassenger.should_receive(:on_event).with(:starting_worker_process)
      PhusionPassenger.should_receive(:on_event).with(:stopping_worker_process)

      Appsignal::Hooks::PassengerHook.new.install
    end
  end

  context "without passenger" do
    its(:dependencies_present?) { should be_false }
  end
end

Version data entries

97 entries across 97 versions & 1 rubygems

Version Path
appsignal-1.2.1.beta.3 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.1.beta.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.1.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.6 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.5 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.4 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.9 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.9.beta.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.9.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.8 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.3 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.7 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.7.beta.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.2.0.alpha.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.7.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.6 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.1.6.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb