Shopify / statsd-instrument

A StatsD client for Ruby apps. Provides metaprogramming methods to inject StatsD instrumentation into your code.
http://shopify.github.io/statsd-instrument
MIT License
574 stars 97 forks source link

assertion calls with no_prefix: true will set the expectation name to nil instead of just keeping the name #267

Closed SaifBenChahed closed 4 years ago

SaifBenChahed commented 4 years ago

assertion calls with no_prefix: true will set the expectation name to nil instead of just keeping the name

assert_statsd_increment('PlusMetrics.storefront.requests', no_prefix: true) do

end

will expect an increment with no name because of this https://github.com/Shopify/statsd-instrument/blob/fff742eabee98f1cc80f68e4bc77b13ad28cc5f8/lib/statsd/instrument/expectation.rb#L39