tests/test-html.rb
# This function checks that the module is displaying the correct code
This function checks that the module is displaying the correct code
This function checks that the module is displaying the correct code
def moduleCode?(m, mspec)
    code = m.css("h3").text
    if code != mspec["code"].upcase
      add_issue("Module #{mspec["code"]} is displaying an incorrect code! (#{code})")
    end
  end
def moduleCode? ( m , mspec ) code = m . css ( "h3" ) . text if code != mspec [ "code" ] . upcase add_issue ( "Module #{mspec["code"]} is displaying an incorrect code! (#{code})" ) end end
This function checks that the module is displaying the correct code
This function checks that the module is displaying the correct code
m
mspec