Permalink
Browse files

Updating test_statsd_count_with_name_as_lambda to include sampling rate

  • Loading branch information...
freeatnet committed Jan 21, 2013
1 parent 075af85 commit f48ec36a67fffe5ae630226ea6ccf49bfa5bf9c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/statsd-instrument_test.rb
@@ -134,7 +134,7 @@ def test_statsd_count
def test_statsd_count_with_name_as_lambda
ActiveMerchant::Gateway.statsd_count(:ssl_post, lambda {|object| object.class.to_s.downcase + ".insert"})
- StatsD.expects(:increment).with('gatewaysubclass.insert')
+ StatsD.expects(:increment).with('gatewaysubclass.insert', 1)
GatewaySubClass.new.purchase(true)
end

0 comments on commit f48ec36

Please sign in to comment.