Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix spec names to match intended behavior

  • Loading branch information...
commit 3f9d9c3e1ebdb4ec4ff4676b4115f9cd5f83833c 1 parent 334f665
@reinh authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 spec/statsd_spec.rb
View
4 spec/statsd_spec.rb
@@ -74,14 +74,14 @@ def socket; @socket ||= FakeUDPSocket.new end
describe "when the sample rate is greater than a random value [0,1]" do
before { class << @statsd; def rand; 0; end; end } # ensure delivery
- it "should not yield" do
+ it "should yield" do
@statsd.sampled(0.5) { :yielded }.must_equal :yielded
end
end
describe "when the sample rate is less than a random value [0,1]" do
before { class << @statsd; def rand; 1; end; end } # ensure no delivery
- it "should yield" do
+ it "should not yield" do
@statsd.sampled(0.5) { :yielded }.must_equal nil
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.