Sha256: 62afc5750a93ead9188c12f5ee0b483dc46790eccdbb392f6fdd6f282796489d
Contents?: true
Size: 912 Bytes
Versions: 2
Compression:
Stored size: 912 Bytes
Contents
# encoding: utf-8 require "minitest_helper" require "iso3166_ru" class Iso3166RuTest < MiniTest::Unit::TestCase RUSSIA = Iso3166Ru::Country.new("Россия", "Российская Федерация", "Russian Federation", "RU", "RUS", "643", "Европа", "Восточная Европа") 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") end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
iso3166_ru-0.1.1 | test/iso3166_ru_test.rb |
iso3166_ru-0.1.0 | test/iso3166_ru_test.rb |