From a35ba6cf5a91b0cde0a22007f8532313754d0cac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gon=C3=A7alo=20Silva?= Date: Tue, 29 Mar 2011 23:43:26 +0100 Subject: don't allow decimal places on the amount of objects and gc runs --- activesupport/lib/active_support/testing/performance.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib') diff --git a/activesupport/lib/active_support/testing/performance.rb b/activesupport/lib/active_support/testing/performance.rb index f6945e8466..71d49459ef 100644 --- a/activesupport/lib/active_support/testing/performance.rb +++ b/activesupport/lib/active_support/testing/performance.rb @@ -231,7 +231,7 @@ module ActiveSupport class Amount < Base def format(measurement) - number_with_delimiter(measurement) + number_with_delimiter(measurement.floor) end end -- cgit v1.2.3