round in statistics spec since Float#to_s has changed in 1.9.2

This commit is contained in:
Jonne Hass 2011-10-15 14:30:33 +02:00
parent 5a96c8ff49
commit e9ce5456d6

View file

@ -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