diff --git a/lib/locales/nl.yml b/lib/locales/nl.yml index f2465d8f53..23b77512e6 100644 --- a/lib/locales/nl.yml +++ b/lib/locales/nl.yml @@ -83,7 +83,15 @@ nl: - "#{first_name} #{last_name} #{last_name}" phone_number: - formats: ["(####) ######", "##########", "06########", "06 #### ####"] + country_code: + - '31' + formats: + - "(####) ######" + - "##########" + cell_phone: + formats: + - "06########" + - "06 #### ####" university: prefix: [Universiteit, Hogeschool] diff --git a/test/test_nl_locale.rb b/test/test_nl_locale.rb index 2b9ff7faca..354077083a 100644 --- a/test/test_nl_locale.rb +++ b/test/test_nl_locale.rb @@ -65,6 +65,12 @@ def test_nl_phone_number_methods assert_kind_of String, Faker::PhoneNumber.cell_phone end + def test_nl_cell_phone_countrycode + mobile = Faker::PhoneNumber.cell_phone_with_country_code.gsub(/\D/, '') + + assert_match(/^(0|31)/, mobile) + end + def test_nl_university_methods assert_kind_of String, Faker::University.prefix assert_kind_of String, Faker::University.name