wp_roster 0.0.2 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +21 -4
- data/lib/wp_roster/extractor.rb +1 -1
- data/lib/wp_roster/roster.rb +4 -0
- data/lib/wp_roster/version.rb +1 -1
- data/spec/cassettes/la-angels.yml +6 -6
- data/spec/cassettes/lets-go-mets.yml +711 -711
- data/spec/extractor_spec.rb +3 -5
- data/spec/player_spec.rb +2 -0
- data/spec/roster_spec.rb +1 -0
- metadata +1 -1
data/spec/extractor_spec.rb
CHANGED
@@ -11,17 +11,15 @@ module WpRoster
|
|
11
11
|
its(:url) { should == "https://en.wikipedia.org/wiki/Template:New_York_Mets_roster" }
|
12
12
|
its(:document) { should be_a Nokogiri::HTML::Document }
|
13
13
|
|
14
|
-
|
15
14
|
describe "#roster" do
|
16
15
|
|
17
16
|
its(:active_roster) { should have_at_least(10).item }
|
18
|
-
its(:active_roster) { should have(
|
17
|
+
its(:active_roster) { should have(25).item }
|
19
18
|
its(:inactive_roster) { should have_at_least(1).item }
|
20
|
-
its(:inactive_roster) { should have(
|
19
|
+
its(:inactive_roster) { should have(14).item }
|
21
20
|
its(:coaches_others) { should have_at_least(1).item }
|
22
21
|
|
23
|
-
its(:roster) { should have(
|
24
|
-
|
22
|
+
its(:roster) { should have(51).item }
|
25
23
|
|
26
24
|
#it { should be_a WpRoster::Player }
|
27
25
|
|
data/spec/player_spec.rb
CHANGED
data/spec/roster_spec.rb
CHANGED