1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Fix AS tests due to builder change with nil values / empty strings

Check 0180e090ab for more reasoning about
that.
This commit is contained in:
Carlos Antonio da Silva 2012-09-07 13:37:04 -03:00
parent ba4a6c296e
commit f24a5517e9

View file

@ -848,7 +848,7 @@ class HashToXmlTest < ActiveSupport::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
@ -856,7 +856,7 @@ class HashToXmlTest < ActiveSupport::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