Sha256: 2c08a95c519f20c471933305ae4b06874ae9c3f7561bd769393c32db0c685c49
Contents?: true
Size: 751 Bytes
Versions: 3
Compression:
Stored size: 751 Bytes
Contents
# encoding: utf-8 ### # to run use # ruby -I ./lib -I ./test test/test_countries.rb require 'helper' class TestCountries < MiniTest::Test COUNTRIES = SportDb::Import.catalog.countries def test_countries ## pp COUNTRIES eng = COUNTRIES[:eng] assert_equal 'eng', eng.key assert_equal 'England', eng.name assert_equal 'ENG', eng.fifa at = COUNTRIES[:at] assert_equal 'at', at.key assert_equal 'Austria', at.name assert_equal 'AUT', at.fifa assert at == COUNTRIES['AT'] assert at == COUNTRIES['at'] assert at == COUNTRIES['AUT'] assert at == COUNTRIES['aut'] assert at == COUNTRIES[:aut] end end # class TestCountries
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sportdb-config-1.0.2 | test/test_countries.rb |
sportdb-config-1.0.1 | test/test_countries.rb |
sportdb-config-1.0.0 | test/test_countries.rb |