Sha256: cc0eb2141dd8c42ff3af920afb902eb754cd5d14d4fbc596736718f1054cddf7

Contents?: true

Size: 927 Bytes

Versions: 21

Compression:

Stored size: 927 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Ncaafb::Venue, vcr: {
    cassette_name: 'sports_data_api_ncaafb_venue',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  let(:weekly_schedule) do
    SportsDataApi.set_access_level(:ncaafb, 't')
    SportsDataApi.set_key(:ncaafb, api_key(:ncaafb))
    SportsDataApi::Ncaafb.weekly(2014, :REG, 4)
  end

  context 'results from weekly schedule fetch' do
    subject { weekly_schedule.first.venue }
    its(:id) { should eq 'c63bd111-d94a-42e1-bd95-cbb74103552c' }
    its(:name) { should eq 'Bill Snyder Family Football Stadium' }
    its(:address) { should eq '1800 College Avenue' }
    its(:city) { should eq 'Manhattan' }
    its(:state) { should eq 'KS' }
    its(:zip) { '46225' }
    its(:country) { should eq 'USA' }
    its(:capacity) { should eq 50000 }
    its(:surface) { should eq 'artificial' }
    its(:type) { should eq 'outdoor' }
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
sports_data_api-0.15.3 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.15.2 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.15.1 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.15.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.14.1 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.14.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.13.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.12.1 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.12.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.6 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.5 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.3 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.2 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.1 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.11.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.10.1 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.10.0 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.9.2 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.2.4 spec/lib/sports_data_api/ncaafb/venue_spec.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/ncaafb/venue_spec.rb