Sha256: 62e50cb61cef9e2b8757334387e4f6d3aeebe157c59aa5bd8f89076a1ff6f905
Contents?: true
Size: 581 Bytes
Versions: 8
Compression:
Stored size: 581 Bytes
Contents
# encoding: utf-8 ### # to run use # ruby -I ./lib -I ./test test/test_match_champs.rb require 'helper' class TestMatchChamps < MiniTest::Test def test_parse txt, exp, teams = read_test( 'match/champs_group.txt' ) start = Date.new( 2017, 7, 1 ) SportDb::Import.config.lang = 'en' parser = SportDb::MatchParser.new( txt, teams, start ) matches, rounds, groups = parser.parse pp rounds pp groups pp matches[-1] ## only dump last record for now end # method test_parse end # class TestMatchChamps
Version data entries
8 entries across 8 versions & 1 rubygems