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.
 
 
 

24 rivejä
530 B

  1. require 'spec_helper'
  2. describe UKPlanningScraper::Authority do
  3. describe '#named' do
  4. let(:scraper) { UKPlanningScraper::Authority.named(authority_name) }
  5. context 'for 4 days of Brighton and Hove' do
  6. let(:authority_name) { 'Brighton and Hove' }
  7. it 'returns apps' do
  8. apps = VCR.use_cassette("#{self.class.description}") {
  9. scraper.decided_days(4).scrape({ delay: 0 })
  10. }
  11. pp apps
  12. # expect(authority).to be_a(UKPlanningScraper::Authority)
  13. end
  14. end
  15. end
  16. end