Sha256: 64a1ecfed9f9c0e06b45c0bbfb6b4ef3bbdfc73399aabc742ff02eead25756a5

Contents?: true

Size: 586 Bytes

Versions: 20

Compression:

Stored size: 586 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Nfl::TeamSeasonStats, vcr: {
    cassette_name: 'sports_data_api_nfl_team_season_stats',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  before do
    SportsDataApi.set_key(:nfl, api_key(:nfl))
    SportsDataApi.set_access_level(:nfl, 't')
  end
  let(:team_stats) { SportsDataApi::Nfl.team_season_stats("BUF", 2013, "REG") }
  subject { team_stats }
  describe 'meta methods' do
    it { should respond_to :id }
    it { should respond_to :stats }
    it { subject.stats.kind_of?(Array).should be true }
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
sports_data_api-0.14.1 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.14.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.13.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.12.1 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.12.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.6 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.5 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.3 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.2 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.1 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.11.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.10.1 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.10.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.9.2 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.4 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.2 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.1 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.2.0 spec/lib/sports_data_api/nfl/team_season_stats.rb
sports_data_api-0.1.0 spec/lib/sports_data_api/nfl/team_season_stats.rb