Sha256: 2f871447a0048484362307c1cc6be73e57717aee9676d76da6792168063345da

Contents?: true

Size: 486 Bytes

Versions: 9

Compression:

Stored size: 486 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Mlb::Season, vcr: {
    cassette_name: 'sports_data_api_mlb_season',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  context 'results from schedule fetch' do
      let(:season) do
        SportsDataApi.set_access_level(:mlb, 't')
        SportsDataApi.set_key(:mlb, api_key(:mlb))
        SportsDataApi::Mlb.schedule(2014)
      end

      subject { season }
      its(:games) { should have(2449).games}

  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sports_data_api-0.10.1 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.10.0 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.9.2 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.2.4 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.2.2 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.2.1 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.2.0 spec/lib/sports_data_api/mlb/season_spec.rb
sports_data_api-0.1.0 spec/lib/sports_data_api/mlb/season_spec.rb