aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-11-12 05:16:24 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-11-12 05:16:24 +0900
commitaea9c9a1edee8153cdc24c518803a9d48bf78657 (patch)
treea6aa46d150f0c010de583e1ad3dbee1ad02d98b6 /activerecord/test
parenta741208f80dd33420a56486bd9ed2b0b9862234a (diff)
downloadrails-aea9c9a1edee8153cdc24c518803a9d48bf78657.tar.gz
rails-aea9c9a1edee8153cdc24c518803a9d48bf78657.tar.bz2
rails-aea9c9a1edee8153cdc24c518803a9d48bf78657.zip
Fix test case for money schema default
Follow up a741208f80dd33420a56486bd9ed2b0b9862234a. 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.
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/adapters/postgresql/money_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/adapters/postgresql/money_test.rb b/activerecord/test/cases/adapters/postgresql/money_test.rb
index 75e5aaed53..1aa0348879 100644
--- a/activerecord/test/cases/adapters/postgresql/money_test.rb
+++ b/activerecord/test/cases/adapters/postgresql/money_test.rb
@@ -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