Sha256: 3b201652bc2b308a136a2e1cf6d9e3cdcfafc4d3899646abc009d019ad23460a

Contents?: true

Size: 571 Bytes

Versions: 15

Compression:

Stored size: 571 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Nba::Games, vcr: {
    cassette_name: 'sports_data_api_nba_games',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  context 'results from daily schedule fetch' do
    let(:games) do
      SportsDataApi.set_access_level(:nba, 't')
      SportsDataApi.set_key(:nba, api_key(:nba))
      SportsDataApi::Nba.daily(2013, 12, 12)
    end
    subject { games }
    it { should be_an_instance_of(SportsDataApi::Nba::Games) }
    its(:date) { should eq "2013-12-12" }
    its(:count) { should eq 2 }
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sports_data_api-0.11.6 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.11.5 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.11.3 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.11.2 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.11.1 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.11.0 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.10.1 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.10.0 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.9.2 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.2.4 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.2.2 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.2.1 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.2.0 spec/lib/sports_data_api/nba/games_spec.rb
sports_data_api-0.1.0 spec/lib/sports_data_api/nba/games_spec.rb