some name changes and fixed tests
This commit is contained in:
@@ -3,7 +3,7 @@ require 'sightstone'
|
||||
|
||||
class BaseTest < Test::Unit::TestCase
|
||||
|
||||
@@sightstone = Sightstone.new("your_api_key_here")
|
||||
@@sightstone = Sightstone::Sightstone.new("your_test_api_key")
|
||||
|
||||
@@req_id = 30447079
|
||||
@@test_id_array = [30447079,30447079,30447079]
|
||||
|
||||
@@ -7,7 +7,7 @@ class LeagueModuleTest < BaseTest
|
||||
|
||||
def test_league
|
||||
begin
|
||||
leagues = @@sightstone.league.league(@@req_id)
|
||||
leagues = @@sightstone.league.leagues(@@req_id)
|
||||
rescue Sightstone::RateLimitExceededException
|
||||
puts "Rate limit exeeded, waiting 1 sec"
|
||||
sleep 1
|
||||
|
||||
@@ -52,7 +52,7 @@ class SummonerModuleTest < BaseTest
|
||||
|
||||
def test_summoner_runebook
|
||||
begin
|
||||
runebook = @@sightstone.summoner.runes(@@test_id_array[0])
|
||||
runebook = @@sightstone.summoner.runebook(@@test_id_array[0])
|
||||
rescue Sightstone::RateLimitExceededException
|
||||
puts "Rate limit exeeded, waiting 1 sec"
|
||||
sleep 1
|
||||
@@ -85,7 +85,7 @@ class SummonerModuleTest < BaseTest
|
||||
|
||||
def test_summoner_masterybook
|
||||
begin
|
||||
masterybook = @@sightstone.summoner.masteries(@@test_id_array[0])
|
||||
masterybook = @@sightstone.summoner.masterybook(@@test_id_array[0])
|
||||
rescue Sightstone::RateLimitExceededException
|
||||
puts "Rate limit exeeded, waiting 1 sec"
|
||||
sleep 1
|
||||
|
||||
Reference in New Issue
Block a user