vendor/gems/assert2-0.5.5/lib/assert2/xhtml.rb
#  NOTE  if you call it a class, but ref contains 
#        something fruity, you are on your own!
NOTE  if you call it a class, but ref contains
something fruity, you are on your own!
NOTE if you call it a class but ref contains something fruity you are on your own!
def match_text(ref = @reference, sam = @sample)
    ref_text = get_texts(ref)
    ref_text.empty? and return true
    sam_text = get_texts(sam)
    (ref_text - sam_text).empty? and return true
    got = (ref_text.length == 1 and match_regexp(ref_text.first, sam_text.join))
    return got
  end
def match_text ( ref = @reference , sam = @sample ) ref_text = get_texts ( ref ) ref_text . empty? and return true sam_text = get_texts ( sam ) ( ref_text - sam_text ) . empty? and return true got = ( ref_text . length == 1 and match_regexp ( ref_text . first , sam_text . join ) ) return got end
NOTE  if you call it a class, but ref contains
something fruity, you are on your own!
NOTE if you call it a class but ref contains something fruity you are on your own!
ref
<not_specific>
sam
<not_specific>