A Ruby gem to get planning applications data from UK council websites.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

24 行
535 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.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