everypolitician / scraper_test

Data-driven scraper tests for Scraped
0 stars 0 forks source link

WIP: Enable deep testing #15

Closed ondenman closed 7 years ago

ondenman commented 7 years ago

WIP!

Fixes: #14

At the moment scraper_test cannot test any object that returns other Scraped::Document objects in its to_h data.

This PR replaces any Scraped::Document subclasses contained in the subject's to_h data with their own to_h data before comparing the result to the YAML file.

ondenman commented 7 years ago

Closing as this should be handled by Scraped. (issue: https://github.com/everypolitician/scraped/issues/98)