From e9ce5456d695bd43c682f1c31f98438a499bc097 Mon Sep 17 00:00:00 2001 From: Jonne Hass Date: Sat, 15 Oct 2011 14:30:33 +0200 Subject: [PATCH] round in statistics spec since Float#to_s has changed in 1.9.2 --- spec/lib/statistics_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/lib/statistics_spec.rb b/spec/lib/statistics_spec.rb index aced855bd..3ee6c6cd6 100644 --- a/spec/lib/statistics_spec.rb +++ b/spec/lib/statistics_spec.rb @@ -142,7 +142,7 @@ describe Statistics do bob.post(:status_message, :text => "here is a message") bob.save! - @stats.generate_correlations[:posts_count].to_s.should == "1.0" + c = @stats.generate_correlations[:posts_count].round(1).should == 1.0 end end