diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2017-01-25 01:11:19 +0300 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2017-01-25 01:11:19 +0300 |
commit | cd361af830445ca5e61addd649476ba36814617b (patch) | |
tree | a9390a7c04e9df71c9b4129bcf8878adbe7eaddf /spec | |
parent | 21f53806ee19ef0f9b302a8828f00a6be51537b3 (diff) | |
parent | a96765e6274b9b6886ee6172d25d47a9d36f18c6 (diff) |
Merge branch 'add-metrics-initializer-spec' into 'master'
Add metric initializer spec
See merge request !8714
Diffstat (limited to 'spec')
-rw-r--r-- | spec/initializers/metrics_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/initializers/metrics_spec.rb b/spec/initializers/metrics_spec.rb new file mode 100644 index 00000000000..bb595162370 --- /dev/null +++ b/spec/initializers/metrics_spec.rb @@ -0,0 +1,16 @@ +require 'spec_helper' +require_relative '../../config/initializers/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 |