Permalink
Browse files

Update test_statsd_count_with_name_as_lambda test case to use argumen…

…ts passing.
  • Loading branch information...
1 parent a59b151 commit 9d640e4a1ef2f8c37e6cdbc1f38f3434017f08ab @freeatnet freeatnet committed Jan 23, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/statsd-instrument_test.rb
@@ -132,9 +132,9 @@ def test_statsd_count
end
def test_statsd_count_with_name_as_lambda
- ActiveMerchant::Gateway.statsd_count(:ssl_post, lambda {|object| object.class.to_s.downcase + ".insert"})
+ ActiveMerchant::Gateway.statsd_count(:ssl_post, lambda {|object, args| object.class.to_s.downcase + ".insert." + args.first.to_s})
- StatsD.expects(:increment).with('gatewaysubclass.insert', 1)
+ StatsD.expects(:increment).with('gatewaysubclass.insert.true', 1)
GatewaySubClass.new.purchase(true)
end

0 comments on commit 9d640e4

Please sign in to comment.