test/helper.rb in sportdb-models-2.0.2 vs test/helper.rb in sportdb-models-2.0.3

- old
+ new

@@ -1,46 +1,46 @@ -## minitest setup -require 'minitest/autorun' - - -## our own code -require 'sportdb/models' - - -##################### -# Models shortcuts - -Country = WorldDb::Model::Country - -Person = PersonDb::Model::Person - -League = SportDb::Model::League -Season = SportDb::Model::Season -Event = SportDb::Model::Event -Team = SportDb::Model::Team -Lineup = SportDb::Model::Lineup -Assoc = SportDb::Model::Assoc -AssocAssoc = SportDb::Model::AssocAssoc - -Round = SportDb::Model::Round -Group = SportDb::Model::Group -Stage = SportDb::Model::Stage -Match = SportDb::Model::Match -MatchCursor = SportDb::Model::MatchCursor - - -EventStanding = SportDb::Model::EventStanding -EventStandingEntry = SportDb::Model::EventStandingEntry -GroupStanding = SportDb::Model::GroupStanding -GroupStandingEntry = SportDb::Model::GroupStandingEntry -AlltimeStanding = SportDb::Model::AlltimeStanding -AlltimeStandingEntry = SportDb::Model::AlltimeStandingEntry - - -################################# -# setup db -> schema / tables - -SportDb.setup_in_memory_db - -## test helpers here -SportDb.delete! -SportDb.tables +## minitest setup +require 'minitest/autorun' + + +## our own code +require 'sportdb/models' + + +##################### +# Models shortcuts + +Country = WorldDb::Model::Country + +Person = PersonDb::Model::Person + +League = SportDb::Model::League +Season = SportDb::Model::Season +Event = SportDb::Model::Event +Team = SportDb::Model::Team +Lineup = SportDb::Model::Lineup +Assoc = SportDb::Model::Assoc +AssocAssoc = SportDb::Model::AssocAssoc + +Round = SportDb::Model::Round +Group = SportDb::Model::Group +Stage = SportDb::Model::Stage +Match = SportDb::Model::Match +MatchCursor = SportDb::Model::MatchCursor + + +EventStanding = SportDb::Model::EventStanding +EventStandingEntry = SportDb::Model::EventStandingEntry +GroupStanding = SportDb::Model::GroupStanding +GroupStandingEntry = SportDb::Model::GroupStandingEntry +AlltimeStanding = SportDb::Model::AlltimeStanding +AlltimeStandingEntry = SportDb::Model::AlltimeStandingEntry + + +################################# +# setup db -> schema / tables + +SportDb.setup_in_memory_db + +## test helpers here +SportDb.delete! +SportDb.tables