Sha256: e7bd84048874b4e7ccda658f5e9a7cd4fa0d8386bf37c2c1f9e86c1b1249cbec
Contents?: true
Size: 844 Bytes
Versions: 1
Compression:
Stored size: 844 Bytes
Contents
# encoding: utf-8 require 'spec_helper' module FootStats describe Player do describe '.all' do context "normal response" do use_vcr_cassette 'team_player' subject { Player.all(team: 1487) } it 'should have a lot of players' do subject.count.should == 37 subject.each do |player| player.should be_a(FootStats::Player) player.source_id.should be_a(Integer) player.full_name.should be_a(String) player.nickname.should be_a(String) end end end end describe ".resource_name" do subject { Player } its(:resource_name) { should eq 'ListaJogadoresEquipe' } end describe ".resource_key" do subject { Player } its(:resource_key) { should eq 'Jogador' } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
foot_stats-0.1.0 | spec/foot_stats/player_spec.rb |