Sha256: 29cc39826d08d311bfb0e72e6afa0d438bb558278558e30ae599fd1dcb4867df
Contents?: true
Size: 1.41 KB
Versions: 5
Compression:
Stored size: 1.41 KB
Contents
require 'spec_helper' describe SportsDataApi::Nhl::Player, vcr: { cassette_name: 'sports_data_api_nhl_player', record: :new_episodes, match_requests_on: [:host, :path] } do before do SportsDataApi.set_key(:nhl, api_key(:nhl)) SportsDataApi.set_access_level(:nhl, 't') end let(:player) { SportsDataApi::Nhl.team_roster('441713b7-0f24-11e2-8525-18a905767e44').players.first.player } describe 'player' do subject { player } it 'should have an id' do expect(subject[:id]).to eql '42784f4b-0f24-11e2-8525-18a905767e44' end it 'should have a status' do expect(subject[:status]).to eql 'ACT' end it 'should have a full_name' do expect(subject[:full_name]).to eql 'George Parros' end it 'should have a first_name' do expect(subject[:first_name]).to eql 'George' end it 'should have a last_name' do expect(subject[:last_name]).to eql 'Parros' end it 'should have an abbr_name' do expect(subject[:abbr_name]).to eql 'G.Parros' end it 'should have a handedness' do expect(subject[:handedness]).to eql 'R' end it 'should have a position' do expect(subject[:position]).to eql 'F' end it 'should have a primary_position' do expect(subject[:primary_position]).to eql 'RW' end it 'should have a jersey_number' do expect(subject[:jersey_number]).to eql '15' end end end
Version data entries
5 entries across 5 versions & 1 rubygems