Sha256: fd6fe04b74753bc75b01d8b63e253bb8dfd08274fbf858827fdffbf47c04dacc
Contents?: true
Size: 1.12 KB
Versions: 1
Compression:
Stored size: 1.12 KB
Contents
# encoding: utf-8 require "minitest_helper" require "iso3166_ru" class Iso3166RuTest < Minitest::Test RUSSIA = Iso3166Ru::Country.new("Россия", "Российская Федерация", "Russian Federation", "RU", "RUS", "643", "Европа", "Восточная Европа") ANTARCTICA = Iso3166Ru::Country.new("Антарктида", "", "Antarctica", "AQ", "ATA", "010", "Антарктика", " ") def test_find_by_alpha2 assert_equal RUSSIA, Iso3166Ru.find_by(alpha2: "RU") end def test_find_by_alpha3 assert_equal RUSSIA, Iso3166Ru.find_by(alpha3: "RUS") end def test_find_by_name assert_equal RUSSIA, Iso3166Ru.find_by(name: "Россия") end def test_find_by_full_name assert_equal RUSSIA, Iso3166Ru.find_by(full_name: "Российская Федерация") end def test_find_by_english assert_equal RUSSIA, Iso3166Ru.find_by(english: "Russian Federation") end def test_find_by_iso assert_equal RUSSIA, Iso3166Ru.find_by(iso: "643") assert_equal ANTARCTICA, Iso3166Ru.find_by(iso: "010") assert_equal ANTARCTICA, Iso3166Ru.find_by(iso: 10) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iso3166_ru-0.2.0 | test/iso3166_ru_test.rb |