Skip to content
Browse files

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

Check 0180e09 for more reasoning about
that.
  • Loading branch information...
1 parent ba4a6c2 commit f24a5517e93feaf4a7400471021764c99623d3e2 @carlosantoniodasilva carlosantoniodasilva committed Sep 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activesupport/test/core_ext/hash_ext_test.rb
View
4 activesupport/test/core_ext/hash_ext_test.rb
@@ -848,15 +848,15 @@ def test_one_level_with_nils
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
xml = { :name => "David", :street => "Paulina", :age => nil }.to_xml(@xml_options.merge(:skip_types => true))
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

0 comments on commit f24a551

Please sign in to comment.
Something went wrong with that request. Please try again.