Sha256: 2aac3b94f6bedb5a040b63db302da7a3450653cca727195b19d331e195a01689

Contents?: true

Size: 690 Bytes

Versions: 92

Compression:

Stored size: 690 Bytes

Contents

require 'spec_helper'

describe "Passenger integration" do
  let(:file) { File.expand_path('lib/appsignal/integrations/passenger.rb') }
  before(:all) do
    module PhusionPassenger
    end
  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

92 entries across 92 versions & 1 rubygems

Version Path
appsignal-0.11.18 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.rc.7 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.rc.6 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.rc.5 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.54 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.53 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.52 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.51 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.17 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.16 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.15 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.14 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.14.beta.1 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13.beta.4 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13.beta.3 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13.beta.2 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13.beta.1 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.13.beta.0 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.11.12 spec/lib/appsignal/integrations/passenger_spec.rb