Sha256: d8f47e8d872d0ce2d196c15cc7b76f3ce51a075afc5df459026f84602ff5f341

Contents?: true

Size: 658 Bytes

Versions: 2

Compression:

Stored size: 658 Bytes

Contents

require 'test_helper'

class NcfTest < EspnTest
  
  test 'college football 2012 week 9 regular season' do
    starts_at = DateTime.parse('2012-10-23T00:00:00+00:00')
    expected = {
      league: 'college-football',
      game_date: starts_at,
      home_team: '309',
      home_score: 27,
      away_team: '2032',
      away_score: 50
    }
    scores = ESPN.get_college_football_scores(2012, 9)
    assert_equal expected, scores.first
  end
  
  test 'looking for a break' do
    random_days.each do |week|
      scores = ESPN.get_college_football_scores(2012, week)
      assert all_names_present?(scores), "!!! error in week #{week}"
    end
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
espn_scraper-1.5.0 test/espn_scraper_test/ncf_test.rb
espn_scraper-1.3.1 test/espn_scraper_test/ncf_test.rb