Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (13 sloc) 315 Bytes
# encoding: UTF-8
module Nokogiri
module XML
class Node
# Override equality testing so we can use MiniTest::Mock#expect with
# Nokogiri::XML::Node arguments. Node's default behavior considers
# all nodes unequal.
def ==(node)
self.to_s == node.to_s
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.