added league entries for a summoner

This commit is contained in:
danijoo
2014-03-17 10:34:43 +01:00
parent a232047781
commit b0d05e5424
3 changed files with 46 additions and 2 deletions

View File

@@ -20,6 +20,22 @@ class LeagueModuleTest < BaseTest
_check_league(league)
end
end
def test_entry
begin
entries = @@sightstone.league.league_entries(@@req_id)
rescue Sightstone::RateLimitExceededException
puts "Rate limit exeeded, waiting 1 sec"
sleep 1
retry
end
entries.each do |entry|
assert_instance_of(Sightstone::LeagueItem, entry)
# check the league entries
_check_league_item(entry)
end
end
def _check_league(league)
assert_instance_of String, league.name