spec/subdivision_spec.rb in countries-5.4.0 vs spec/subdivision_spec.rb in countries-5.5.0

- old
+ new

@@ -29,6 +29,14 @@ codes but had #{country.subdivisions.keys.inspect}" ) end end end + + describe 'code_with_translations' do + before { ISO3166.configuration.locales = %i[en pt] } + it 'returns a hash' do + expect(ISO3166::Country.new('IT').subdivisions['NA'].code_with_translations).to eq({ 'NA' => { 'en' => 'Naples', + 'pt' => 'NĂ¡poles' } }) + end + end end