From 27ba5edef1c4264a8d1c0e54675723d37a391dd8 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sun, 18 Mar 2007 07:30:09 +0000 Subject: Hash#to_xml supports YAML attributes; ActiveRecord::Base#to_xml support serialized attributes. Closes #7502. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6444 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/core_ext/hash_ext_test.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'activesupport/test/core_ext') diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 64d550aaf5..5a5bd7fe5a 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -376,7 +376,7 @@ class HashToXmlTest < Test::Unit::TestCase 2592000000 2003-07-16 2003-07-16T09:28:00+0000 - Have a nice day + --- \n1: should be an integer\n:message: Have a nice day\narray: \n- should-have-dashes: true\n should_have_underscores: true\n david@loudthinking.com @@ -391,7 +391,7 @@ class HashToXmlTest < Test::Unit::TestCase :replies_close_in => 2592000000, :written_on => Date.new(2003, 7, 16), :viewed_at => Time.utc(2003, 7, 16, 9, 28), - :content => "Have a nice day", + :content => { :message => "Have a nice day", 1 => "should be an integer", "array" => [{ "should-have-dashes" => true, "should_have_underscores" => true }] }, :author_email_address => "david@loudthinking.com", :parent_id => nil }.stringify_keys @@ -407,6 +407,7 @@ class HashToXmlTest < Test::Unit::TestCase + EOT @@ -416,7 +417,8 @@ class HashToXmlTest < Test::Unit::TestCase :id => nil, :approved => nil, :written_on => nil, - :viewed_at => nil, + :viewed_at => nil, + :content => nil, :parent_id => nil }.stringify_keys -- cgit v1.2.3