提交 3f0241a6 编写于 作者: C Charlie Somerville

use assert_includes so we get a useful failure message

上级 38a74325
......@@ -505,7 +505,7 @@ 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_includes xml, %(<age nil="true"></age>)
end
def test_one_level_with_skipping_types
......@@ -513,7 +513,7 @@ def test_one_level_with_skipping_types
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_includes xml, %(<age nil="true"></age>)
end
def test_one_level_with_yielding
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册