Closed sambostock closed 1 year ago
I am sorry if I missed something, but I believe this is already possible. For instance I have a test written like this:
class SomethingTest
include StatsD::Instrument::Assertions
include StatsD::Instrument::Helpers
test "my test" do
datagrams = capture_statsd_datagrams do
invoke_something_to_be_tested
end
assert_statsd_increment("metric.name", datagrams:, times: 1, sample_rate: 1.0, tags: { "status": "ok"})
end
end
It should be possible to write a Rubocop Cop for the following
Bad
Good
Should we create such a Cop?