Permalink
Browse files

Make histogram test work in 1.8

  • Loading branch information...
1 parent c0808dd commit c2d04f4d418b9d5ba658e939c12337e06cfbcfea @eric committed Jul 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/histogram_test.rb
View
@@ -187,7 +187,7 @@ def test_exponential_sample_snapshot_threaded
end
def test_long_idle_sample
- Time.stubs(:now).returns(Time.new(2000))
+ Time.stubs(:now).returns(Time.at(2000))
sample = Metriks::ExponentiallyDecayingSample.new(Metriks::Histogram::DEFAULT_SAMPLE_SIZE, Metriks::Histogram::DEFAULT_ALPHA)
Time.unstub(:now)
@histogram = Metriks::Histogram.new(sample)

0 comments on commit c2d04f4

Please sign in to comment.