aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/calculations_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/calculations_test.rb')
-rw-r--r--activerecord/test/calculations_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/calculations_test.rb b/activerecord/test/calculations_test.rb
index 7b89e8c62c..9a0d0434a5 100644
--- a/activerecord/test/calculations_test.rb
+++ b/activerecord/test/calculations_test.rb
@@ -13,8 +13,8 @@ class CalculationsTest < Test::Unit::TestCase
def test_should_average_field
value = Account.average(:credit_limit)
- assert_equal 53, value
assert_kind_of Float, value
+ assert_in_delta 53.0, value, 0.001
end
def test_should_get_maximum_of_field