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