Sha256: 33e572f5d8a97a270cd7184577d13ccbf0bc63074f86cb36f5227c92cf0f7359
Contents?: true
Size: 675 Bytes
Versions: 7
Compression:
Stored size: 675 Bytes
Contents
require 'test_helper' module Europe module Countries # CountryTest class CountryTest < Minitest::Test include Benchmark def test_country_by_name reversed_hash = Europe::Countries::Reversed.generate(:name) assert_equal reversed_hash['Netherlands'], :NL assert_equal reversed_hash['Ireland'], :IE reversed_hash = Europe::Countries::Reversed.generate(:currency) assert_equal reversed_hash[:EUR].count, 17 end def test_eurozone assert Europe::Countries.eurozone.include?(:DE) assert_equal false, Europe::Countries.eurozone.include?(:UK) end end end end
Version data entries
7 entries across 7 versions & 1 rubygems