test/helper.rb in sportdb-models-1.15.1 vs test/helper.rb in sportdb-models-1.15.2

- old
+ new

@@ -48,10 +48,11 @@ TeamReader = SportDb::TeamReader AssocReader = SportDb::AssocReader SeasonReader = SportDb::SeasonReader LeagueReader = SportDb::LeagueReader EventReader = SportDb::EventReader +EventTableReader = SportDb::EventTableReader GameReader = SportDb::GameReader NationalTeamSquadReader = SportDb::NationalTeamSquadReader ClubSquadReader = SportDb::ClubSquadReader ## moved to racing.db - remove/delete!! @@ -102,9 +103,16 @@ module TestEventReader def self.from_file( name ) EventReader.from_file( "#{SportDb.test_data_path}/#{name}.yml" ) end end + +module TestEventTableReader + def self.from_file( name ) + EventTableReader.from_file( "#{SportDb.test_data_path}/#{name}.txt" ) + end +end + module TestGameReader ## NOTE: pass in .yml as path (that is, event config!!!!) def self.from_file( name, more_attribs={} ) GameReader.from_file( "#{SportDb.test_data_path}/#{name}.yml", more_attribs )