Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions test/xpath/test_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -883,7 +885,7 @@ def test_spaces
assert_equal(["<c id='b'/>", "<c id='c'/>"],
match.call(' / a / c [ ( @id ) ] '))
assert_equal(["<c id='b'/>", "<c id='c'/>"],
match.call('/ a / child:: c [( @id )] /'))
match.call('/ a / child:: c [( @id )]'))
end

def test_space_paren_brace_inside_xpath_string
Expand Down
Loading