spec/metrics_spec.rb in pliny-0.20.1 vs spec/metrics_spec.rb in pliny-0.20.2
- old
+ new
@@ -50,9 +50,13 @@
before do
Timecop.freeze(Time.now)
Pliny::Metrics.backends = [test_backend]
end
+ after do
+ Timecop.return
+ end
+
it "measures a block's execution time with a single key" do
metrics.measure(:foo) { }
expect(test_backend).to have_received(:report_measures).once.with(
"pliny.foo" => 0
)