Fix test case for money schema default

Follow up a741208f80.

Since a741208, `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:
Ryuta Kamizono 2018-11-12 05:16:24 +09:00
parent a741208f80
commit aea9c9a1ed
1 changed files with 1 additions and 1 deletions

View File

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