diff --git a/test/xpath/test_base.rb b/test/xpath/test_base.rb index 6fa31fa2..911fda12 100644 --- a/test/xpath/test_base.rb +++ b/test/xpath/test_base.rb @@ -251,7 +251,9 @@ def test_axe_parent def test_axe_namespace_no_error $VERBOSE, verbose = nil, $VERBOSE # Although namespace axis is not implemented yet, it should not raise NoMethodError - XPath.match(@@doc, "a/d/c/namespace::*") + assert_nothing_raised do + XPath.match(@@doc, "a/d/c/namespace::*") + end ensure $VERBOSE = verbose end @@ -883,7 +885,7 @@ def test_spaces assert_equal(["", ""], match.call(' / a / c [ ( @id ) ] ')) assert_equal(["", ""], - match.call('/ a / child:: c [( @id )] /')) + match.call('/ a / child:: c [( @id )]')) end def test_space_paren_brace_inside_xpath_string