A Ruby gem to get planning applications data from UK council websites.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

property_details_spec.rb 587 B

12345678910111213141516171819202122232425
  1. require 'spec_helper'
  2. describe UKPlanningScraper::Authority do
  3. describe '#include_property' do
  4. let(:scraper) { UKPlanningScraper::Authority.named(authority_name) }
  5. context 'for 2 days with property details' do
  6. let(:authority_name) { 'Cardiff' }
  7. it 'returns apps' do
  8. apps = VCR.use_cassette("#{self.class.description}") {
  9. scraper.include_property
  10. .decided_from(Date.new(2019, 4, 8))
  11. .decided_to(Date.new(2019, 4, 9))
  12. .scrape(delay: 0)
  13. }
  14. pp apps
  15. end
  16. end
  17. end
  18. end