tests/test-html.rb
# This test ensures that the module's more info link it pointing at the correct place
This test ensures that the module's more info link it pointing at the correct place
This test ensures that the module ' s more info link it pointing at the correct place
def moduleLink?(m, mspec)
    link = m.css("div.group > a")[0]['href']
    if link != "#{@settings["info"]}/#{mspec["code"].upcase}.html"
      add_issue("Module #{mspec["code"]} is not linking to the correct resource! (#{link})")
    end
  end
def moduleLink? ( m , mspec ) link = m . css ( "div.group > a" ) [ 0 ] [ 'href' ] if link != "#{@settings["info"]}/#{mspec["code"].upcase}.html" add_issue ( "Module #{mspec["code"]} is not linking to the correct resource! (#{link})" ) end end
This test ensures that the module's more info link it pointing at the correct place
This test ensures that the module ' s more info link it pointing at the correct place
# TODO: Make this link a variable that is easily set by whoever uses this.
m
mspec