aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/types_test.rb
diff options
context:
space:
mode:
authorMariano Valles <mariano.valles@wooga.com>2014-07-16 16:08:35 +0200
committerMariano Valles <mariano.valles@wooga.com>2014-07-16 16:08:35 +0200
commit7098c9083ccd08eb36cce5abcc99ad0506945ef0 (patch)
tree1b05f8f95a5a237037519e6244da59263b3606e4 /activerecord/test/cases/types_test.rb
parenta4802e217e95af14ca6ae13ab72ff3b44e2b4217 (diff)
downloadrails-7098c9083ccd08eb36cce5abcc99ad0506945ef0.tar.gz
rails-7098c9083ccd08eb36cce5abcc99ad0506945ef0.tar.bz2
rails-7098c9083ccd08eb36cce5abcc99ad0506945ef0.zip
Change class evaluation for Rationals in cast_value
Diffstat (limited to 'activerecord/test/cases/types_test.rb')
-rw-r--r--activerecord/test/cases/types_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/types_test.rb b/activerecord/test/cases/types_test.rb
index 4ba8a3e09f..541c0a4e12 100644
--- a/activerecord/test/cases/types_test.rb
+++ b/activerecord/test/cases/types_test.rb
@@ -103,7 +103,7 @@ module ActiveRecord
end
def test_type_cast_rational_to_decimal_with_precision
- type = Type::Decimal.new(:precision => 2)
+ type = Type::Decimal.new(precision: 2)
assert_equal BigDecimal("0.33"), type.type_cast_from_user(Rational(1, 3))
end