adrianshort / uk_planning_scraper

A Ruby gem to get planning applications data from UK council websites.
GNU Lesser General Public License v3.0
27 stars 19 forks source link

Some initial tests #5

Closed pezholio closed 5 years ago

pezholio commented 5 years ago

Just added a few initial tests and a bit of an improvement to the interface, so it raises an error if a council is not found (give a more descriptive erros if people try something like UKPlanningScraper::Authority.named('Westmonster').scrape and wonder why it didn't work.

Testing the actual scraping mechanism requires a few more dependencies and tweaks, which I'll do when I've got a bit more time 👍

adrianshort commented 5 years ago

Thanks. Looks good. I would appreciate some better test coverage when you're free.