Check out spec/parsers/parties_spec.rb for an example of testing the parsing of html. Here is a basic overview of what it does:
1) Load in example fixture spec/fixtures/parsers/parties/multiple.html which is just html that I copied from the browser using inspect element
2) Run the parser
3) Check that the data generated from the parser matches what you would expect
Description
Check out
spec/parsers/parties_spec.rb
for an example of testing the parsing of html. Here is a basic overview of what it does:1) Load in example fixture
spec/fixtures/parsers/parties/multiple.html
which is just html that I copied from the browser using inspect element 2) Run the parser 3) Check that the data generated from the parser matches what you would expectHow to test
Run from project root: