Sha256: 7e60e9a0b0e11b567cc5aaf33e7a1b451faa8259dcc26071a6c8355d953b0687
Contents?: true
Size: 868 Bytes
Versions: 6
Compression:
Stored size: 868 Bytes
Contents
require File.dirname(__FILE__) + '/../../spec_helper' describe SystemMetrics::Instrument::Rack do include NotificationsSupport before(:each) do @instrument = SystemMetrics::Instrument::Rack.new end describe '#handle?' do it 'should handle any event whose name is request.rack' do @instrument.handles?(event(:name => 'request.rack')).should be_true end it 'should not handle an event whose name is not request.rack' do @instrument.handles?(event(:name => 'response.rack')).should be_false @instrument.handles?(event(:name => 'view.rack')).should be_false end end describe '#ignore?' do it 'should always return false' do @instrument.ignore?(event(:name => 'request.rack')).should be_false @instrument.ignore?(event(:name => 'start_processing.action_controller')).should be_false end end end
Version data entries
6 entries across 6 versions & 1 rubygems