Sha256: de667c6360b9ab6687fd36b2ce87aed551f18708468a9625481de7917a414aec

Contents?: true

Size: 584 Bytes

Versions: 12

Compression:

Stored size: 584 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" do
    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

12 entries across 12 versions & 1 rubygems

Version Path
appsignal-0.12.beta.50 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.49 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.48 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.47 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.46 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.45 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.44 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.43 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.42 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.41 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.40 spec/lib/appsignal/integrations/passenger_spec.rb
appsignal-0.12.beta.39 spec/lib/appsignal/integrations/passenger_spec.rb