From 4eaa8ba5bec9001e97349e7dfd565c7215085834 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Mon, 8 Oct 2007 06:17:53 +0000 Subject: PostgreSQL: support multiline default values. Closes #7533. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7801 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/defaults_test.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/test/defaults_test.rb') diff --git a/activerecord/test/defaults_test.rb b/activerecord/test/defaults_test.rb index 39dcc82b49..965dd956b0 100644 --- a/activerecord/test/defaults_test.rb +++ b/activerecord/test/defaults_test.rb @@ -57,4 +57,10 @@ class DefaultTest < Test::Unit::TestCase assert_equal BigDecimal.new("2.78"), default.decimal_number end end + + if current_adapter?(:PostgreSQLAdapter) + def test_multiline_default_text + assert_equal "--- []\n\n", Default.columns_hash['multiline_default'].default + end + end end -- cgit v1.2.3