aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/core_ext
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-07 13:37:04 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-09-07 13:37:04 -0300
commitf24a5517e93feaf4a7400471021764c99623d3e2 (patch)
treebf6d4e7ddbac28080f8cbc2b23ea3bc231a072c0 /activesupport/test/core_ext
parentba4a6c296e2283501494e1608be238f30444e1fc (diff)
downloadrails-f24a5517e93feaf4a7400471021764c99623d3e2.tar.gz
rails-f24a5517e93feaf4a7400471021764c99623d3e2.tar.bz2
rails-f24a5517e93feaf4a7400471021764c99623d3e2.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/core_ext')
-rw-r--r--activesupport/test/core_ext/hash_ext_test.rb4
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 37fdf1c0af..94463cc311 100644
--- a/activesupport/test/core_ext/hash_ext_test.rb
+++ b/activesupport/test/core_ext/hash_ext_test.rb
@@ -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