2017-01-23 09:41:32 -05:00
|
|
|
require 'spec_helper'
|
2017-03-01 12:15:28 -05:00
|
|
|
require_relative '../../config/initializers/8_metrics'
|
2017-01-23 09:41:32 -05:00
|
|
|
|
|
|
|
describe 'instrument_classes', lib: true do
|
|
|
|
let(:config) { double(:config) }
|
|
|
|
|
|
|
|
before do
|
|
|
|
allow(config).to receive(:instrument_method)
|
|
|
|
allow(config).to receive(:instrument_methods)
|
|
|
|
allow(config).to receive(:instrument_instance_methods)
|
|
|
|
end
|
|
|
|
|
|
|
|
it 'can autoload and instrument all files' do
|
|
|
|
expect { instrument_classes(config) }.not_to raise_error
|
|
|
|
end
|
|
|
|
end
|