Sha256: 894ffdbf263483239fb29bc232a76320e9a7994f3be5287f86b23cc6a487e23a
Contents?: true
Size: 231 Bytes
Versions: 3
Compression:
Stored size: 231 Bytes
Contents
class FakeUDPSocket def buffer @buffer ||= [] end def send(message, *rest) buffer.push [message] end def to_s; buffer; end end class FakeStatsd < Statsd def socket @socket ||= FakeUDPSocket.new end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
adhearsion-stats-0.0.3 | spec/support/statsd_test_helper.rb |
adhearsion-stats-0.0.2 | spec/support/statsd_test_helper.rb |
adhearsion-stats-0.0.1 | spec/support/statsd_test_helper.rb |