updated to game-v1.3

This commit is contained in:
danijoo
2014-01-12 16:27:43 +01:00
parent 352f74dcb9
commit 323395fa5f
4 changed files with 10 additions and 30 deletions

View File

@@ -35,17 +35,14 @@ class GameModuleTest < BaseTest
assert_instance_of(String, game.subType)
assert_instance_of(Fixnum, game.teamId)
assert_instance_of(Array, game.fellowPlayers)
assert_instance_of(Array, game.statistics)
_check_statistics(game.statistics)
_check_fellows(game.fellowPlayers)
end
def _check_statistics(stats)
stats.each do |stat|
assert_instance_of(Sightstone::Stat, stat)
assert_instance_of(Fixnum, stat.value)
assert_instance_of(Fixnum, stat.id)
assert_instance_of(String, stat.name)
assert_instance_of(Hash, stats)
stats.each do |key, stat|
assert_instance_of(String, key)
end
end