Skip to content
Browse files

2014 Season readiness

* update gems
* update cassettes
* update tests for new cassettes… these tests are fragile.
  • Loading branch information...
1 parent 6bdfdba commit ff4d757f09a26dd51a16f55cb973f66a3a982207 @cjolly committed Sep 1, 2013
Showing with 1,438 additions and 1,025 deletions.
  1. +10 −10 Gemfile.lock
  2. +1 −1 lib/pickem.rb
  3. +1,423 −1,006 spec/fixtures/vcr_cassettes/cbs_sports.yml
  4. +4 −8 spec/scrapers/cbs_sports_spec.rb
View
20 Gemfile.lock
@@ -10,18 +10,18 @@ GEM
specs:
addressable (2.3.2)
crack (0.3.1)
- diff-lcs (1.1.3)
+ diff-lcs (1.2.4)
nokogiri (1.5.0)
- rspec (2.12.0)
- rspec-core (~> 2.12.0)
- rspec-expectations (~> 2.12.0)
- rspec-mocks (~> 2.12.0)
- rspec-core (2.12.1)
- rspec-expectations (2.12.0)
- diff-lcs (~> 1.1.3)
- rspec-mocks (2.12.0)
+ rspec (2.14.1)
+ rspec-core (~> 2.14.0)
+ rspec-expectations (~> 2.14.0)
+ rspec-mocks (~> 2.14.0)
+ rspec-core (2.14.5)
+ rspec-expectations (2.14.2)
+ diff-lcs (>= 1.1.3, < 2.0)
+ rspec-mocks (2.14.3)
terminal-table (1.4.5)
- vcr (2.3.0)
+ vcr (2.5.0)
webmock (1.8.11)
addressable (>= 2.2.7)
crack (>= 0.1.7)
View
2 lib/pickem.rb
@@ -6,7 +6,7 @@
require 'date'
module Pickem
- FIRST_WEEK_OF_SEASON = 36
+ FIRST_WEEK_OF_SEASON = 35
def self.results
scraper = Scrapers::CBSSports.scrape!
View
2,429 spec/fixtures/vcr_cassettes/cbs_sports.yml
1,423 additions, 1,006 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
12 spec/scrapers/cbs_sports_spec.rb
@@ -13,16 +13,12 @@ module Pickem::Scrapers
scraper.games.size.should == 16
end
- it "should rank MIA @ SF as the highest weighted game of the week" do
- scraper.picks.first.should == ['MIA', '*SF', '-10.5']
+ it "should rank NE @ BUF as the highest weighted game of the week" do
+ scraper.picks.first.should == ["*NE", "BUF", "+10.5"]
end
- it "should rank BAL @ WAS as the lowest weighted game of the week" do
- scraper.picks.last.should == ['BAL', '*WAS', '-2.5']
- end
-
- it "should pick the away team if the line is positive" do
- scraper.picks[1].first.should == '*DEN'
+ it "should rank MIA @ CLE as the lowest weighted game of the week" do
+ scraper.picks.last.should == ["*MIA", "CLE", "PK"]
end
end
end

0 comments on commit ff4d757

Please sign in to comment.
Something went wrong with that request. Please try again.