Permalink
Browse files

Don't use the FakeUDPSocket for live tests so they work

  • Loading branch information...
1 parent 5c670f3 commit 8514326e14ff4391daa8b3d432ef050d666d2f8c Rein Henrichs committed Feb 19, 2011
Showing with 1 addition and 6 deletions.
  1. +1 −6 spec/statsd_spec.rb
View
@@ -1,17 +1,12 @@
require 'spec/helper'
describe Statsd do
- class Statsd
- def socket
- @socket ||= FakeUDPSocket.new
- end
- end
-
before do
@statsd = Statsd.new('localhost', 1234)
class << @statsd
public :sampled # we need to test this
attr_reader :host, :port # we also need to test this
+ def socket; @socket ||= FakeUDPSocket.new end
end
end

0 comments on commit 8514326

Please sign in to comment.