瀏覽代碼

Add tests for Authority#tagged

tags/v0.4.5
Adrian Short 6 年之前
父節點
當前提交
435b21678d
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. +15
    -0
      spec/authority_spec.rb

+ 15
- 0
spec/authority_spec.rb 查看文件

@@ -39,4 +39,19 @@ describe UKPlanningScraper::Authority do
end
describe '#tagged' do
let (:tagged_london) { described_class.tagged('london') }
it 'returns all London authorities' do
expect(tagged_london.count).to eq(35)
end
let (:tagged_londonboroughs) { described_class.tagged('londonboroughs') }
it 'returns all London boroughs' do
expect(tagged_londonboroughs.count).to eq(32)
end
end
end

Loading…
取消
儲存