A Ruby gem to get planning applications data from UK council websites.
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

brighton_spec.rb 535 B

1234567891011121314151617181920212223
  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.scrape({ decided_days: 4 }, { delay: 0 })
  10. }
  11. pp apps
  12. # expect(authority).to be_a(UKPlanningScraper::Authority)
  13. end
  14. end
  15. end
  16. end