summoner 1.3 and call for multiple summoners

This commit is contained in:
danijoo
2014-01-17 18:58:09 +01:00
parent 2d95d49634
commit eff722f875
2 changed files with 49 additions and 4 deletions

View File

@@ -13,8 +13,20 @@ class SummonerModuleTest < BaseTest
assert_instance_of(Fixnum, s.level)
end
def test_summoner_by_name
def test_summoners_by_names
begin
s = @@sightstone.summoner.summoners([@@test_name, @@test_name2])
s.each { |name, summoner| _check_summoner_validity(summoner) }
rescue Sightstone::RateLimitExceededException
puts "Rate limit exeeded, waiting 1 sec"
sleep 1
retry
end
end
def test_summoner_by_name
begin
s = @@sightstone.summoner.summoner(@@test_name)
rescue Sightstone::RateLimitExceededException
puts "Rate limit exeeded, waiting 1 sec"
@@ -22,6 +34,7 @@ class SummonerModuleTest < BaseTest
retry
end
_check_summoner_validity(s)
end
def test_summoner_by_id