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:18:23 -0300 |
commit | d65adc742565b6bd448179faf7edb4098db432e5 (patch) | |
tree | 3c942ae14612cd0828985f347e6c46e3b61d378b /activemodel/test/cases/serializers | |
parent | 5054e266ac07da7a2a15173d3d2919948ae1eb6e (diff) | |
download | rails-d65adc742565b6bd448179faf7edb4098db432e5.tar.gz rails-d65adc742565b6bd448179faf7edb4098db432e5.tar.bz2 rails-d65adc742565b6bd448179faf7edb4098db432e5.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.
Conflicts:
activemodel/CHANGELOG.md
Diffstat (limited to 'activemodel/test/cases/serializers')
-rw-r--r-- | 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 38aecf51ff..7f14b21cf4 100644 --- a/activemodel/test/cases/serializers/xml_serialization_test.rb +++ b/activemodel/test/cases/serializers/xml_serialization_test.rb @@ -132,7 +132,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 |