Crawling actual map *names*, but not yet pulling in maps
This commit is contained in:
16
rails/map-mash/spec/lib/map_crawler_spec.rb
Normal file
16
rails/map-mash/spec/lib/map_crawler_spec.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
require 'spec_helper'
|
||||
|
||||
|
||||
describe MapCrawler do
|
||||
let(:subject) { MapCrawler.new(Setting.map(:base_url)) }
|
||||
|
||||
describe 'when crawling for actual maps', :integration => true do
|
||||
before(:each) do
|
||||
Map.destroy_all
|
||||
end
|
||||
|
||||
it 'should create Map entries for each map found' do
|
||||
expect { subject.crawl }.to change{ Map.count }.by_at_least(1)
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user