Sha256: b8dc5980f869dbe61a852d90e8219b7968c5f23b15b937989fe0e570c9ae271b

Contents?: true

Size: 680 Bytes

Versions: 14

Compression:

Stored size: 680 Bytes

Contents

require 'spec_helper'


describe "Passenger integration" do
  let(:file) { File.expand_path('lib/appsignal/integrations/passenger.rb') }
  before(:all) { module PhusionPassenger ; end }

  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)
    load file
  end

  context "without passenger" do
    before(:all) { Object.send(:remove_const, :PhusionPassenger) }

    specify { expect { PhusionPassenger }.to raise_error(NameError) }
    specify { expect { load file }.to_not raise_error }
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
appsignal-0.6.7 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.6 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.5 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.4 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.3 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.3.beta.3 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.3.beta.2 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.3.beta.1 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.2 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.1 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.0.beta.2 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.6.0.beta.1 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.5.5 spec/appsignal/integrations/passenger_spec.rb
appsignal-0.5.3 spec/appsignal/integrations/passenger_spec.rb