diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 13:37:04 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-09-07 13:43:57 -0300 |
commit | 146eaf381822f3d908809111621bf6242c510668 (patch) | |
tree | 714f9d6373a38c0a26e8549e176d42fdf68bc9cc /activesupport/test | |
parent | 77dd3be5038593f38840ff6eca55c9f0b2e12227 (diff) | |
download | rails-146eaf381822f3d908809111621bf6242c510668.tar.gz rails-146eaf381822f3d908809111621bf6242c510668.tar.bz2 rails-146eaf381822f3d908809111621bf6242c510668.zip |
Fix AS tests due to builder change with nil values / empty strings
Check 0180e090ab6cbe66f7b521a0c03e278a0463accd for more reasoning about
that.
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/core_ext/hash_ext_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/test/core_ext/hash_ext_test.rb b/activesupport/test/core_ext/hash_ext_test.rb index 56dfeb68cc..b5eb049ad4 100644 --- a/activesupport/test/core_ext/hash_ext_test.rb +++ b/activesupport/test/core_ext/hash_ext_test.rb @@ -614,7 +614,7 @@ class HashToXmlTest < Test::Unit::TestCase assert_equal "<person>", xml.first(8) assert xml.include?(%(<street>Paulina</street>)) assert xml.include?(%(<name>David</name>)) - assert xml.include?(%(<age nil="true"></age>)) + assert xml.include?(%(<age nil="true"/>)) end def test_one_level_with_skipping_types @@ -622,7 +622,7 @@ class HashToXmlTest < Test::Unit::TestCase assert_equal "<person>", xml.first(8) assert xml.include?(%(<street>Paulina</street>)) assert xml.include?(%(<name>David</name>)) - assert xml.include?(%(<age nil="true"></age>)) + assert xml.include?(%(<age nil="true"/>)) end def test_one_level_with_yielding |