mirror of https://github.com/rails/rails
Fix test case for money schema default
Follow upa741208f80
. Sincea741208
, `Decimal#serialize` which is superclass of `Money` type is no longer no-op, so it consistently serialize/deserialize a value as a decimal even if schema default.
This commit is contained in:
parent
a741208f80
commit
aea9c9a1ed
|
@ -37,7 +37,7 @@ class PostgresqlMoneyTest < ActiveRecord::PostgreSQLTestCase
|
|||
def test_default
|
||||
assert_equal BigDecimal("150.55"), PostgresqlMoney.column_defaults["depth"]
|
||||
assert_equal BigDecimal("150.55"), PostgresqlMoney.new.depth
|
||||
assert_equal "$150.55", PostgresqlMoney.new.depth_before_type_cast
|
||||
assert_equal "150.55", PostgresqlMoney.new.depth_before_type_cast
|
||||
end
|
||||
|
||||
def test_money_values
|
||||
|
|
Loading…
Reference in New Issue