Sha256: b9b3a0103c16c7f29331b1ed66993c3ee46e74c9fcbdf4a9e4708eeea7c9331f

Contents?: true

Size: 504 Bytes

Versions: 15

Compression:

Stored size: 504 Bytes

Contents

require 'spec_helper'

describe SportsDataApi::Mlb, '.daily_summary', vcr: {
  cassette_name: 'sports_data_api_mlb_daily_summary',
  record: :new_episodes,
  match_requests_on: [:path]
} do
  subject do
    SportsDataApi.set_key(:mlb, api_key(:mlb))
    SportsDataApi.set_access_level(:mlb, 't')
    SportsDataApi::Mlb.daily_summary(2016, 9, 24)
  end

  it 'parses data and sets games' do
    expect(subject.count).to eq 15
    expect(subject.first).to be_instance_of SportsDataApi::Mlb::Game
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
sports_data_api-0.15.3 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.15.2 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.15.1 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.15.0 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.14.1 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.14.0 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.13.0 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.12.1 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.12.0 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.6 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.5 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.3 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.2 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.1 spec/lib/sports_data_api/mlb/daily_summary_spec.rb
sports_data_api-0.11.0 spec/lib/sports_data_api/mlb/daily_summary_spec.rb