Browse files

missing spec and doc for guage

  • Loading branch information...
1 parent dafa6bb commit 1528e8fc8f6a3e55437f9f966c7e54c316fe3c50 @j-manu j-manu committed May 30, 2012
Showing with 6 additions and 0 deletions.
  1. +1 −0 lib/statsd.rb
  2. +5 −0 spec/statsd_spec.rb
View
1 lib/statsd.rb
@@ -7,6 +7,7 @@
# @example Send some stats
# $statsd.increment 'garets'
# $statsd.timing 'glork', 320
+# $statsd.gauge 'bork', 100
# @example Use {#time} to time the execution of a block
# $statsd.time('account.activate') { @account.activate! }
# @example Create a namespaced statsd client and increment 'account.activate'
View
5 spec/statsd_spec.rb
@@ -183,6 +183,11 @@ class Statsd
@statsd.timing('foobar', 500)
@statsd.socket.recv.must_equal ['service.foobar:500|ms']
end
+
+ it "should add namespace to gauge" do
+ @statsd.gauge('foobar', 500)
+ @statsd.socket.recv.must_equal ['service.foobar:500|g']
+ end
end
describe "with logging" do

0 comments on commit 1528e8f

Please sign in to comment.