OSDN Git Service

Getting an absolute location of this file was wrong if it was a synbolic link. This...
[shogi-server/shogi-server.git] / test / TC_floodgate_history.rb
index 4667088..767d1c5 100644 (file)
@@ -5,6 +5,9 @@ require 'shogi_server'
 require 'shogi_server/player'
 require 'shogi_server/league/floodgate'
 
+$league = ShogiServer::League.new(File.dirname(__FILE__))
+$league.event = "TC_floodgate_history"
+
 class MockGame
   attr_accessor :game_id, :game_name
 
@@ -15,6 +18,7 @@ end
 
 class MockPlayer < ShogiServer::BasicPlayer
   attr_accessor :status
+  attr_accessor :last_command_at
 end
 
 class TestHistory < Test::Unit::TestCase