From aaf047c58731790cb35e0a91cf708bd9af4431b4 Mon Sep 17 00:00:00 2001 From: Yana Agun Siswanto Date: Wed, 25 Nov 2020 01:42:43 +0700 Subject: [PATCH] id: add state_abbr (#2183) source: https://www.iso.org/obp/ui/#iso:code:3166:ID --- lib/locales/id.yml | 1 + test/test_id_locale.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/locales/id.yml b/lib/locales/id.yml index 22f9f09a99..8afc74eb13 100644 --- a/lib/locales/id.yml +++ b/lib/locales/id.yml @@ -20,6 +20,7 @@ id: - "#{street_prefix} #{street_title}" street_address: - "#{street_name} No. #{building_number}" + state_abbr: [AC, BA, BT, BE, GO, JK, JA, JW, JB, JT, JI, KA, KB, KS, KT, KI, KU, BB, KR, LA, ML, MA, MU, NU, NB, NT, PP, PA, PB, RI, SL, SR, SN, ST, SG, SA, SM, SB, SS, SU, YO] country_code: ['62'] phone_number: formats: ['08##########', '08##-####-####', '8#########'] diff --git a/test/test_id_locale.rb b/test/test_id_locale.rb index ea394b682a..9df6814791 100644 --- a/test/test_id_locale.rb +++ b/test/test_id_locale.rb @@ -19,6 +19,7 @@ def test_id_address_methods assert Faker::Address.street_address.is_a? String assert Faker::Address.building_number.is_a? String assert Faker::Address.city_name.is_a? String + assert Faker::Address.state_abbr.is_a? String assert Faker::Address.street_prefix.is_a? String assert Faker::Address.street_title.is_a? String assert Faker::Address.street_name.is_a? String