AyOK-Code / oscn_scraper

MIT License
1 stars 1 forks source link

Add specs for parser #1

Closed holdenmitchell closed 3 years ago

holdenmitchell commented 3 years ago

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 expect

How to test

Run from project root:

> rspec spec/parsers/parties_spec.rb
github-actions[bot] commented 3 years ago

Simplecov Report

Covered Threshold
100% 90%