diff options
author | Tobias Lütke <tobias.luetke@gmail.com> | 2007-06-27 16:37:40 +0000 |
---|---|---|
committer | Tobias Lütke <tobias.luetke@gmail.com> | 2007-06-27 16:37:40 +0000 |
commit | 817d5d489d70496de67dbff97497b35578e6491b (patch) | |
tree | 8de9004e28f5bb73d0cd914e25a3fe1123bfd670 /activerecord/test/xml_serialization_test.rb | |
parent | 80d539bd4daa180e0c792b3878b2250c9913c437 (diff) | |
download | rails-817d5d489d70496de67dbff97497b35578e6491b.tar.gz rails-817d5d489d70496de67dbff97497b35578e6491b.tar.bz2 rails-817d5d489d70496de67dbff97497b35578e6491b.zip |
Add the type="array" moniker to has_many / has_and_belongs_to_many associations upon serialization.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7144 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/xml_serialization_test.rb')
-rw-r--r-- | activerecord/test/xml_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/xml_serialization_test.rb b/activerecord/test/xml_serialization_test.rb index b40fa0b84e..5cb40752ec 100644 --- a/activerecord/test/xml_serialization_test.rb +++ b/activerecord/test/xml_serialization_test.rb @@ -146,7 +146,7 @@ class DatabaseConnectedXmlSerializationTest < Test::Unit::TestCase def test_include_uses_association_name xml = authors(:david).to_xml :include=>:hello_posts, :indent=>0 - assert_match %r{<hello-posts>}, xml + assert_match %r{<hello-posts type="array">}, xml assert_match %r{<post>}, xml assert_match %r{<sti-post>}, xml end |