This Ruby module can compare DOMs and assert certain elements exist in doms using Nokogiri.