spec/metrics_spec.rb in pliny-0.32.0 vs spec/metrics_spec.rb in pliny-1.0.0

- old
+ new

@@ -100,7 +100,23 @@ metrics.measure(:waldo) expect(test_backend).to have_received(:report_measures).once.with( "pliny.waldo" => 0 ) end + + it "measures value in implicit hash with multiple metrics names" do + metrics.measure("metric.name", "another.name", value: 3.14, foo: :bar) + expect(test_backend).to have_received(:report_measures).once.with( + "pliny.metric.name" => 3.14, + "pliny.another.name" => 3.14 + ) + end + + it "measures value in explicit hash with multiple metrics names" do + metrics.measure("metric.name", "another.name", { value: 3.14, foo: :bar }) + expect(test_backend).to have_received(:report_measures).once.with( + "pliny.metric.name" => 3.14, + "pliny.another.name" => 3.14 + ) + end end end