test/test_config.rb in sportdb-config-0.3.3 vs test/test_config.rb in sportdb-config-0.3.4

- old
+ new

@@ -7,41 +7,14 @@ require 'helper' class TestConfig < MiniTest::Test - - def match1( txt ) SportDb::Import::Configuration::CLUBS_REGEX1.match( txt ); end - def match2( txt ) SportDb::Import::Configuration::CLUBS_REGEX2.match( txt ); end - - def test_find_clubs - m = match1( 'de.clubs.txt' ) - assert_equal 'de', m[:country] - - m = match1( 'deutschland/de.clubs.txt' ) - assert_equal 'de', m[:country] - - m = match2( 'europe/de-deutschland/clubs.txt' ) - assert_equal 'de', m[:country] - - m = match2( 'de-deutschland/clubs.txt' ) - assert_equal 'de', m[:country] - - - assert match1( 'clubs.txt' ) == nil - assert match2( 'clubs.txt' ) == nil - assert match1( 'deutschland/clubs.txt' ) == nil - assert match2( 'deutschland/clubs.txt' ) == nil - end - - def test_clubs SportDb::Import.config.clubs_dir = '../../../openfootball/clubs' - pp SportDb::Import.config.teams + SportDb::Import.config.teams - pp SportDb::Import.config.errors - assert true ## assume ok if we get here - end # method test_teams + end # method test_clubs end # class TestConfig