Sha256: 65aff46e8ffe2fd57e74f281d81f109ecf1585b0e54c5455e02394b31f1af406

Contents?: true

Size: 545 Bytes

Versions: 5

Compression:

Stored size: 545 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Nhl::Broadcast, vcr: {
    cassette_name: 'sports_data_api_nhl_broadcast',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  let(:daily_schedule) do
    SportsDataApi.set_access_level(:nhl, 't')
    SportsDataApi.set_key(:nhl, api_key(:nhl))
    SportsDataApi::Nhl.daily(2013, 12, 12)
  end
  context 'results from daily schedule fetch' do
    subject { daily_schedule.first.broadcast }
    its(:network) { should eq 'CSN-PH' }
    its(:satellite) { should eq nil }
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sports_data_api-0.2.4 spec/lib/sports_data_api/nhl/broadcast_spec.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/nhl/broadcast_spec.rb
sports_data_api-0.2.2 spec/lib/sports_data_api/nhl/broadcast_spec.rb
sports_data_api-0.2.1 spec/lib/sports_data_api/nhl/broadcast_spec.rb
sports_data_api-0.2.0 spec/lib/sports_data_api/nhl/broadcast_spec.rb