Sha256: 34c53450619627700387ff47f8c8b05898f63ad1fa4e9dee30af7db52af7775a

Contents?: true

Size: 758 Bytes

Versions: 9

Compression:

Stored size: 758 Bytes

Contents

# encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_indexer_team.rb
#  or better
#     rake -I ./lib test


require 'helper'

class TestTeamIndexerXX < MiniTest::Test    ## note: TestTeamIndexer already exists

  def setup
    WorldDb.delete!
    SportDb.delete!
    SportDb.read_builtin
  end

  def test_bl
    at = Country.create!( key: 'at', name: 'Austria', code: 'AUT', pop: 1, area: 1)

    indexer = TestTeamIndexer.from_file( 'at-austria/teams', country_id: at.id )
    h = indexer.read()

    pp h

    ## indexer = TestTeamIndexer.from_file( 'at-austria/teams_2', country_id: at.id )
    ## indexer.read()
 
    assert true  ## assume everthing ok   
  end

end # class TestTeamIndexerXX

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
sportdb-models-1.18.6 test/test_indexer_team.rb
sportdb-models-1.18.5 test/test_indexer_team.rb
sportdb-models-1.18.4 test/test_indexer_team.rb
sportdb-models-1.18.3 test/test_indexer_team.rb
sportdb-models-1.18.2 test/test_indexer_team.rb
sportdb-models-1.18.1 test/test_indexer_team.rb
sportdb-models-1.18.0 test/test_indexer_team.rb
sportdb-models-1.17.0 test/test_indexer_team.rb
sportdb-models-1.16.2 test/test_indexer_team.rb