horsefield 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +0,0 @@
1
- require 'horsefield'
2
-
3
- describe Horsefield do
4
- end
data/spec/scraper_spec.rb DELETED
@@ -1,21 +0,0 @@
1
- require 'spec_helper'
2
- require 'horsefield/scraper'
3
-
4
- describe Horsefield::Scraper do
5
- describe 'with HTML' do
6
- before do
7
- @html = IO.read File.join(__dir__, 'fixtures/monster.html')
8
- end
9
-
10
- it 'should scrape' do
11
- result = Horsefield::Scraper.new.scrape html: @html do
12
- many :jobs, '.listingsTable .odd, .listingsTable .even' do
13
- one :title, '.jobTitleContainer'
14
- one :company, '.companyContainer'
15
- end
16
- end
17
-
18
- result[:jobs].should have(9).items
19
- end
20
- end
21
- end