Sha256: 6d7fccfc7840c0bbbcc2480c2c551b1db09bf636c905d4242261bc8b0aa2ee62

Contents?: true

Size: 663 Bytes

Versions: 20

Compression:

Stored size: 663 Bytes

Contents

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

20 entries across 20 versions & 1 rubygems

Version Path
appsignal-2.0.6 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.1.0.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.5 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.5.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.1.0.alpha.3 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.1.0.alpha.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.1.0.alpha.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.4 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.3 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.2 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.0 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-2.0.0.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.4.0.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.6 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.6.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.5 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.5.beta.1 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.4 spec/lib/appsignal/hooks/passenger_spec.rb
appsignal-1.3.3 spec/lib/appsignal/hooks/passenger_spec.rb