test/helper.rb in sportdb-models-1.16.1 vs test/helper.rb in sportdb-models-1.16.2

- old
+ new

@@ -44,10 +44,11 @@ #################### # Reader shortcuts Reader = SportDb::Reader TeamReader = SportDb::TeamReader +TeamIndexer = SportDb::TeamIndexer AssocReader = SportDb::AssocReader SeasonReader = SportDb::SeasonReader LeagueReader = SportDb::LeagueReader EventReader = SportDb::EventReader EventMetaReader = SportDb::EventMetaReader @@ -74,9 +75,16 @@ module TestTeamReader def self.from_file( name, more_attribs={} ) TeamReader.from_file( "#{SportDb.test_data_path}/#{name}.txt", more_attribs ) end end + +module TestTeamIndexer + def self.from_file( name, more_attribs={} ) + TeamIndexer.from_file( "#{SportDb.test_data_path}/#{name}.txt", more_attribs ) + end +end + module TestClubSquadReader def self.from_file( name, more_attribs={} ) ClubSquadReader.from_file( "#{SportDb.test_data_path}/#{name}.txt", more_attribs ) end