Sha256: b0ee6d4b115e647d18ab5821ffceee051093b5a7d44d09755aa575d54dcd3a8d

Contents?: true

Size: 661 Bytes

Versions: 20

Compression:

Stored size: 661 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Nfl::Weather, vcr: {
    cassette_name: 'sports_data_api_nfl_weather',
    record: :new_episodes,
    match_requests_on: [:host, :path]
} do
  let(:weekly_schedule) do
    SportsDataApi.set_access_level(:nfl, 't')
    SportsDataApi.set_key(:nfl, api_key(:nfl))
    SportsDataApi::Nfl.weekly(2011, :PST, 4)
  end
  context 'results from weekly schedule fetch' do
    subject { weekly_schedule.first.weather }
    its(:temperature) { should eq 41 }
    its(:condition) { should eq 'Clear' }
    its(:humidity) { should eq 62 }
    its(:wind_speed) { should eq 4 }
    its(:wind_direction) { should eq 'N' }
  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/weather_spec.rb
sports_data_api-0.14.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.13.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.12.1 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.12.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.6 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.5 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.3 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.2 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.1 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.11.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.10.1 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.10.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.9.2 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.2.4 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.2.3 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.2.2 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.2.1 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.2.0 spec/lib/sports_data_api/nfl/weather_spec.rb
sports_data_api-0.1.0 spec/lib/sports_data_api/nfl/weather_spec.rb