diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 13:08:30 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 13:08:30 -0300 |
commit | 0180e090ab6cbe66f7b521a0c03e278a0463accd (patch) | |
tree | edb51cb72afc689f99aa25a6f553fe228b594407 /activemodel/test | |
parent | a2035307130544e4d6cdbeafad0d0dd4b1beb7a6 (diff) | |
download | rails-0180e090ab6cbe66f7b521a0c03e278a0463accd.tar.gz rails-0180e090ab6cbe66f7b521a0c03e278a0463accd.tar.bz2 rails-0180e090ab6cbe66f7b521a0c03e278a0463accd.zip |
Update Active Model xml serialization test to reflect a change in builder
Due to a change in builder, nil values and empty strings now generates
closed tags, so instead of this:
<pseudonyms nil=\"true\"></pseudonyms>
It generates this:
<pseudonyms nil=\"true\"/>
Document this change in Rails so that people can track it down easily if
necessary.
Diffstat (limited to 'activemodel/test')
-rwxr-xr-x | activemodel/test/cases/serializers/xml_serialization_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/test/cases/serializers/xml_serialization_test.rb b/activemodel/test/cases/serializers/xml_serialization_test.rb index 8c5a3c5efd..e2bb0dda0b 100755 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -133,7 +133,7 @@ class XmlSerializationTest < ActiveModel::TestCase end test "should serialize nil" do - assert_match %r{<pseudonyms nil=\"true\"></pseudonyms>}, @contact.to_xml(:methods => :pseudonyms) + assert_match %r{<pseudonyms nil=\"true\"/>}, @contact.to_xml(:methods => :pseudonyms) end test "should serialize integer" do |