tests/test-html.rb
def moduleName?(m, mspec)
    title = m.css("h2").text

    if title != mspec["name"]
      add_issue("Module #{mspec["code"]} is displaying an incorrect title! (#{title})")
    end

  end
# This function checks to see that the module is displaying the correct title
This function checks to see that the module is displaying the correct title
This function checks to see that the module is displaying the correct title
def moduleName?(m, mspec)
    title = m.css("h2").text
    if title != mspec["name"]
      add_issue("Module #{mspec["code"]} is displaying an incorrect title! (#{title})")
    end
  end
def moduleName? ( m , mspec ) title = m . css ( "h2" ) . text if title != mspec [ "name" ] add_issue ( "Module #{mspec["code"]} is displaying an incorrect title! (#{title})" ) end end
This function checks to see that the module is displaying the correct title
This function checks to see that the module is displaying the correct title
m
mspec