test/test_load.rb in sportdb-1.9.8 vs test/test_load.rb in sportdb-1.9.9
- old
+ new
@@ -7,11 +7,11 @@
# rake -I ./lib test
require 'helper'
-class TestLoad < MiniTest::Unit::TestCase
+class TestLoad < MiniTest::Test
def setup
WorldDb.delete!
SportDb.delete!
PersonDb.delete!
@@ -24,12 +24,12 @@
bra = Team.create!( key: 'bra', title: 'Brazil', code: 'BRA', country_id: br.id )
reader = Reader.new( SportDb.test_data_path )
## fix: add to country_matcher - allow players/br-brazil.txt e.g. country encode in file
- reader.load( 'players/south-america/br-brazil/players' )
- assert_equal 30, Person.count
+ ## reader.load( 'players/south-america/br-brazil/players' )
+ ## assert_equal 30, Person.count
reader.load( 'world-cup/leagues' )
assert_equal 1, League.count
reader.load( 'world-cup/2014/cup' )
assert_equal 1, Event.count
@@ -43,11 +43,11 @@
de = Country.create!( key: 'de', title: 'Germany', code: 'GER', pop: 1, area: 1)
ger = Team.create!( key: 'ger', title: 'Germany', code: 'GER', country_id: de.id )
reader = Reader.new( SportDb.test_data_path )
- reader.load( 'players/europe/de-deutschland/players' )
- assert_equal 27, Person.count
+ ## reader.load( 'players/europe/de-deutschland/players' )
+ ## assert_equal 27, Person.count
reader.load( 'world-cup/leagues' )
assert_equal 1, League.count
reader.load( 'world-cup/2014/cup' )
assert_equal 1, Event.count