summaryrefslogtreecommitdiff
path: root/spec/initializers/8_metrics_spec.rb
blob: 570754621f397b75e64d06332ed27858cbef9934 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
require 'spec_helper'
require_relative '../../config/initializers/8_metrics'

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