Skip to content

Commit

Permalink
Add several missing locales (faker-ruby#1411)
Browse files Browse the repository at this point in the history
* Add missing locales

* Update CHANGELOG.md

* Add missing EN-... locales

* Add locale code to test method names to keep them consistent
  • Loading branch information
vbrazo authored Oct 16, 2018
1 parent 8baa52b commit 6291fdf
Show file tree
Hide file tree
Showing 54 changed files with 460 additions and 308 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
- [PR #1310](https://github.com/stympy/faker/pull/1310) Add alias for middle_name and remove locale [@vbrazo](https://github.com/vbrazo)

### Chores
- [PR #1411](https://github.com/stympy/faker/pull/1411) Add several missing locales [@vbrazo](https://github.com/vbrazo)
- [PR #1403](https://github.com/stympy/faker/pull/1403) Faker::SouthPark => Faker::Movies::SouthPark [@vbrazo](https://github.com/vbrazo)
- [PR #1401](https://github.com/stympy/faker/pull/1401) Faker::GratefulDead => Faker::Movies::GratefulDead [@vbrazo](https://github.com/vbrazo)
- [PR #1362](https://github.com/stympy/faker/pull/1362) Faker::Types minor cleanup [@stephengroat](https://github.com/stephengroat)
Expand Down
2 changes: 0 additions & 2 deletions lib/locales/da-DK.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ da-DK:
street_root: [Lærke, Birke, Vinkel, Vibe, Mølle, Ring, Skole, Skov, Ny, Ege, Sol, Industri, Kirke, Park, Strand, Eng]
street_suffix: [vej, gade, gyde, allé]
state: [Region Nordjylland, Region Midtjylland, Region Syddanmark, Region Hovedstaden, Region Sjælland]

city:
- "#{city_prefix}#{city_suffix}"
street_name:
Expand Down Expand Up @@ -70,6 +69,5 @@ da-DK:
adjective: [Lille, Ergonomisk, Robust, Intelligent, Sød, Utrolig, Fantastisk, Praktisk, Slank, Fed, Enorm, Enkel, Tung, Let, Multianvendelig, Udholdende]
material: [Stål, Metal, Træ, Beton, Plastic, Bomuld, Granit, Gummi, Latex, Læder, Silke, Uld, Ruskind, Linned, Marmor, Jern, Bronze, Kobber, Messing, Aluminium, Papir]
product: [Stol, Bil, Computer, Buks, Trøje, Bord, Hat, Tallerken, Kniv, Flaske, Jakke, Lampe, Tastatur, Taske, Bænk, Ur, Pung]

name:
- "#{Address.city} #{suffix}"
2 changes: 1 addition & 1 deletion lib/locales/en-IND.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ en-IND:
name:
first_name: [Aadrika, Aanandinii, Aaratrika, Aarya, Arya, Aashritha, Aatmaja, Atmaja, Abhaya, Adwitiya, Agrata, Ahilya, Ahalya, Aishani, Akshainie, Akshata, Akshita, Akula, Ambar, Amodini, Amrita, Amritambu, Anala, Anamika, Ananda, Anandamayi, Ananta, Anila, Anjali, Anjushri, Anjushree, Annapurna, Anshula, Anuja, Anusuya, Anasuya, Anasooya, Anwesha, Apsara, Aruna, Asha, Aasa, Aasha, Aslesha, Atreyi, Atreyee, Avani, Abani, Avantika, Ayushmati, Baidehi, Vaidehi, Bala, Baala, Balamani, Basanti, Vasanti, Bela, Bhadra, Bhagirathi, Bhagwanti, Bhagwati, Bhamini, Bhanumati, Bhaanumati, Bhargavi, Bhavani, Bhilangana, Bilwa, Bilva, Buddhana, Chakrika, Chanda, Chandi, Chandni, Chandini, Chandani, Chandra, Chandira, Chandrabhaga, Chandrakala, Chandrakin, Chandramani, Chandrani, Chandraprabha, Chandraswaroopa, Chandravati, Chapala, Charumati, Charvi, Chatura, Chitrali, Chitramala, Chitrangada, Daksha, Dakshayani, Damayanti, Darshwana, Deepali, Dipali, Deeptimoyee, Deeptimayee, Devangana, Devani, Devasree, Devi, Daevi, Devika, Daevika, Dhaanyalakshmi, Dhanalakshmi, Dhana, Dhanadeepa, Dhara, Dharani, Dharitri, Dhatri, Diksha, Deeksha, Divya, Draupadi, Dulari, Durga, Durgeshwari, Ekaparnika, Elakshi, Enakshi, Esha, Eshana, Eshita, Gautami, Gayatri, Geeta, Geetanjali, Gitanjali, Gemine, Gemini, Girja, Girija, Gita, Hamsini, Harinakshi, Harita, Heema, Himadri, Himani, Hiranya, Indira, Jaimini, Jaya, Jyoti, Jyotsana, Kali, Kalinda, Kalpana, Kalyani, Kama, Kamala, Kamla, Kanchan, Kanishka, Kanti, Kashyapi, Kumari, Kumuda, Lakshmi, Laxmi, Lalita, Lavanya, Leela, Lila, Leela, Madhuri, Malti, Malati, Mandakini, Mandaakin, Mangala, Mangalya, Mani, Manisha, Manjusha, Meena, Mina, Meenakshi, Minakshi, Menka, Menaka, Mohana, Mohini, Nalini, Nikita, Ojaswini, Omana, Oormila, Urmila, Opalina, Opaline, Padma, Parvati, Poornima, Purnima, Pramila, Prasanna, Preity, Prema, Priya, Priyala, Pushti, Radha, Rageswari, Rageshwari, Rajinder, Ramaa, Rati, Rita, Rohana, Rukhmani, Rukmin, Rupinder, Sanya, Sarada, Sharda, Sarala, Sarla, Saraswati, Sarisha, Saroja, Shakti, Shakuntala, Shanti, Sharmila, Shashi, Shashikala, Sheela, Shivakari, Shobhana, Shresth, Shresthi, Shreya, Shreyashi, Shridevi, Shrishti, Shubha, Shubhaprada, Siddhi, Sitara, Sloka, Smita, Smriti, Soma, Subhashini, Subhasini, Sucheta, Sudeva, Sujata, Sukanya, Suma, Suma, Sumitra, Sunita, Suryakantam, Sushma, Swara, Swarnalata, Sweta, Shwet, Tanirika, Tanushree, Tanushri, Tanushri, Tanya, Tara, Trisha, Uma, Usha, Vaijayanti, Vaijayanthi, Baijayanti, Vaishvi, Vaishnavi, Vaishno, Varalakshmi, Vasudha, Vasundhara, Veda, Vedanshi, Vidya, Vimala, Vrinda, Vrund, Aadi, Aadidev, Aadinath, Aaditya, Aagam, Aagney, Aamod, Aanandaswarup, Anand Swarup, Aanjaneya, Anjaneya, Aaryan, Aryan, Aatmaj, Aatreya, Aayushmaan, Aayushman, Abhaidev, Abhaya, Abhirath, Abhisyanta, Acaryatanaya, Achalesvara, Acharyanandana, Acharyasuta, Achintya, Achyut, Adheesh, Adhiraj, Adhrit, Adikavi, Adinath, Aditeya, Aditya, Adityanandan, Adityanandana, Adripathi, Advaya, Agasti, Agastya, Agneya, Aagneya, Agnimitra, Agniprava, Agnivesh, Agrata, Ajit, Ajeet, Akroor, Akshaj, Akshat, Akshayakeerti, Alok, Aalok, Amaranaath, Amarnath, Amaresh, Ambar, Ameyatma, Amish, Amogh, Amrit, Anaadi, Anagh, Anal, Anand, Aanand, Anang, Anil, Anilaabh, Anilabh, Anish, Ankal, Anunay, Anurag, Anuraag, Archan, Arindam, Arjun, Arnesh, Arun, Ashlesh, Ashok, Atmanand, Atmananda, Avadhesh, Baalaaditya, Baladitya, Baalagopaal, Balgopal, Balagopal, Bahula, Bakula, Bala, Balaaditya, Balachandra, Balagovind, Bandhu, Bandhul, Bankim, Bankimchandra, Bhadrak, Bhadraksh, Bhadran, Bhagavaan, Bhagvan, Bharadwaj, Bhardwaj, Bharat, Bhargava, Bhasvan, Bhaasvan, Bhaswar, Bhaaswar, Bhaumik, Bhaves, Bheeshma, Bhisham, Bhishma, Bhima, Bhoj, Bhramar, Bhudev, Bhudeva, Bhupati, Bhoopati, Bhoopat, Bhupen, Bhushan, Bhooshan, Bhushit, Bhooshit, Bhuvanesh, Bhuvaneshwar, Bilva, Bodhan, Brahma, Brahmabrata, Brahmanandam, Brahmaanand, Brahmdev, Brajendra, Brajesh, Brijesh, Birjesh, Budhil, Chakor, Chakradhar, Chakravartee, Chakravarti, Chanakya, Chaanakya, Chandak, Chandan, Chandra, Chandraayan, Chandrabhan, Chandradev, Chandraketu, Chandramauli, Chandramohan, Chandran, Chandranath, Chapal, Charak, Charuchandra, Chaaruchandra, Charuvrat, Chatur, Chaturaanan, Chaturbhuj, Chetan, Chaten, Chaitan, Chetanaanand, Chidaakaash, Chidaatma, Chidambar, Chidambaram, Chidananda, Chinmayanand, Chinmayananda, Chiranjeev, Chiranjeeve, Chitraksh, Daiwik, Daksha, Damodara, Dandak, Dandapaani, Darshan, Datta, Dayaamay, Dayamayee, Dayaananda, Dayaanidhi, Kin, Deenabandhu, Deepan, Deepankar, Dipankar, Deependra, Dipendra, Deepesh, Dipesh, Deeptanshu, Deeptendu, Diptendu, Deeptiman, Deeptimoy, Deeptimay, Dev, Deb, Devadatt, Devagya, Devajyoti, Devak, Devdan, Deven, Devesh, Deveshwar, Devi, Devvrat, Dhananjay, Dhanapati, Dhanpati, Dhanesh, Dhanu, Dhanvin, Dharmaketu, Dhruv, Dhyanesh, Dhyaneshwar, Digambar, Digambara, Dinakar, Dinkar, Dinesh, Divaakar, Divakar, Deevakar, Divjot, Dron, Drona, Dwaipayan, Dwaipayana, Eekalabya, Ekalavya, Ekaksh, Ekaaksh, Ekaling, Ekdant, Ekadant, Gajaadhar, Gajadhar, Gajbaahu, Gajabahu, Ganak, Ganaka, Ganapati, Gandharv, Gandharva, Ganesh, Gangesh, Garud, Garuda, Gati, Gatik, Gaurang, Gauraang, Gauranga, Gouranga, Gautam, Gautama, Goutam, Ghanaanand, Ghanshyam, Ghanashyam, Giri, Girik, Girika, Girindra, Giriraaj, Giriraj, Girish, Gopal, Gopaal, Gopi, Gopee, Gorakhnath, Gorakhanatha, Goswamee, Goswami, Gotum, Gautam, Govinda, Gobinda, Gudakesha, Gudakesa, Gurdev, Guru, Hari, Harinarayan, Harit, Himadri, Hiranmay, Hiranmaya, Hiranya, Inder, Indra, Indra, Jagadish, Jagadisha, Jagathi, Jagdeep, Jagdish, Jagmeet, Jahnu, Jai, Javas, Jay, Jitendra, Jitender, Jyotis, Kailash, Kama, Kamalesh, Kamlesh, Kanak, Kanaka, Kannan, Kannen, Karan, Karthik, Kartik, Karunanidhi, Kashyap, Kiran, Kirti, Keerti, Krishna, Krishnadas, Krishnadasa, Kumar, Lai, Lakshman, Laxman, Lakshmidhar, Lakshminath, Lal, Laal, Mahendra, Mohinder, Mahesh, Maheswar, Mani, Manik, Manikya, Manoj, Marut, Mayoor, Meghnad, Meghnath, Mohan, Mukesh, Mukul, Nagabhushanam, Nanda, Narayan, Narendra, Narinder, Naveen, Navin, Nawal, Naval, Nimit, Niranjan, Nirbhay, Niro, Param, Paramartha, Pran, Pranay, Prasad, Prathamesh, Prayag, Prem, Puneet, Purushottam, Rahul, Raj, Rajan, Rajendra, Rajinder, Rajiv, Rakesh, Ramesh, Rameshwar, Ranjit, Ranjeet, Ravi, Ritesh, Rohan, Rohit, Rudra, Sachin, Sameer, Samir, Sanjay, Sanka, Sarvin, Satish, Satyen, Shankar, Shantanu, Shashi, Sher, Shiv, Siddarth, Siddhran, Som, Somu, Somnath, Subhash, Subodh, Suman, Suresh, Surya, Suryakant, Suryakanta, Sushil, Susheel, Swami, Swapnil, Tapan, Tara, Tarun, Tej, Tejas, Trilochan, Trilochana, Trilok, Trilokesh, Triloki, Triloki Nath, Trilokanath, Tushar, Udai, Udit, Ujjawal, Ujjwal, Umang, Upendra, Uttam, Vasudev, Vasudeva, Vedang, Vedanga, Vidhya, Vidur, Vidhur, Vijay, Vimal, Vinay, Vishnu, Bishnu, Vishwamitra, Vyas, Yogendra, Yoginder, Yogesh]
last_name: [Abbott, Achari, Acharya, Adiga, Agarwal, Ahluwalia, Ahuja, Arora, Asan, Bandopadhyay, Banerjee, Bharadwaj, Bhat, Butt, Bhattacharya, Bhattathiri, Chaturvedi, Chattopadhyay, Chopra, Desai, Deshpande, Devar, Dhawan, Dubashi, Dutta, Dwivedi, Embranthiri, Ganaka, Gandhi, Gill, Gowda, Guha, Guneta, Gupta, Iyer, Iyengar, Jain, Jha, Johar, Joshi, Kakkar, Kaniyar, Kapoor, Kaul, Kaur, Khan, Khanna, Khatri, Kocchar, Mahajan, Malik, Marar, Menon, Mehra,Mehrotra, Mishra, Mukhopadhyay, Nayar, Naik, Nair, Nambeesan, Namboothiri, Nehru, Pandey, Panicker, Patel, Patil, Pilla, Pillai, Pothuvaal, Prajapat, Rana, Reddy, Saini, Sethi, Shah, Sharma, Shukla, Singh, Sinha, Somayaji, Tagore, Talwar, Tandon, Trivedi, Varrier, Varma, Varman, Verma]
name_with_middle:
name_with_middle:
- "#{first_name} #{last_name} #{last_name}"
address:
postcode: ['######']
Expand Down
6 changes: 0 additions & 6 deletions lib/locales/en-NZ.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@ en-NZ:
university:
name: [Auckland University of Technology, Lincoln University, Massey University, University of Auckland, University of Canterbury, University of Otago, University of Waikato, Victoria University of Wellington]

company:
suffix: [Ltd, Ltc, and Sons, Group, Brothers, Partners]

internet:
domain_suffix: [co.nz, com, net.nz, net, org.nz, org, govt.nz, iwi.nz, nz, io, co]

team:
sport: [basketball, football, rugby league, netball, rugby union, hockey, cricket, golf, boxing, rowing, motorsport, tennis, athletics, sailing, surf life saving, squash]
name: [Tall Blacks, All Whites, Warriors, Silver Ferns, All Blacks, Black Sticks, Black Caps]
1 change: 0 additions & 1 deletion lib/locales/it.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ it:
- "#{first_name} #{last_name}"
name_with_middle:
- "#{prefix} #{first_name} #{last_name} #{last_name}"
- "#{first_name} #{last_name} #{last_name} #{suffix}"
- "#{first_name} #{last_name} #{last_name}"
- "#{first_name} #{last_name} #{last_name}"
- "#{first_name} #{last_name} #{last_name}"
Expand Down
66 changes: 38 additions & 28 deletions test/test_ar_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,23 +17,28 @@ def test_ar_address_methods
assert Faker::Address.street_name.is_a? String
assert Faker::Address.street_address.is_a? String
assert Faker::Address.full_address.is_a? String
assert Faker::Address.city_prefix.is_a? String
assert Faker::Address.secondary_address.is_a? String
assert Faker::Address.postcode.is_a? String
assert Faker::Address.city_name.is_a? String
assert Faker::Address.building_number.is_a? String
assert Faker::Address.street_address.is_a? String
assert Faker::Address.full_address.is_a? String
assert Faker::Address.default_country.is_a? String
assert_equal Faker::Address.default_country, 'المملكة العربية السعودية'
end

def test_ar_company_name
assert Faker::Company.name.is_a? String
assert Faker::Company.industry.is_a? String
assert Faker::Company.profession.is_a? String
end

def test_ar_university_name
assert Faker::University.name.is_a? String
def test_ar_app_methods
assert Faker::App.name.is_a? String
assert Faker::App.version.is_a? String
assert Faker::App.author.is_a? String
end

def test_ar_name_methods
assert Faker::Name.first_name.is_a? String
assert Faker::Name.last_name.is_a? String
assert Faker::Name.name_with_middle.is_a? String
assert Faker::Name.prefix.is_a? String
def test_ar_book_methods
assert Faker::Book.title.is_a? String
assert Faker::Book.author.is_a? String
assert Faker::Book.publisher.is_a? String
assert Faker::Book.genre.is_a? String
end

def test_ar_color_name
Expand All @@ -46,26 +51,31 @@ def test_ar_commerce_methods
assert Faker::Commerce.promotion_code.is_a? String
end

def test_ar_team_methods
assert Faker::Team.creature.is_a? String
assert Faker::Team.name.is_a? String
assert Faker::Team.sport.is_a? String
def test_ar_company_methods
assert Faker::Company.name.is_a? String
assert Faker::Company.industry.is_a? String
assert Faker::Company.profession.is_a? String
assert Faker::Company.suffix.is_a? String
assert Faker::Company.buzzword.is_a? String
assert Faker::Company.bs.is_a? String
end

def test_ar_app_methods
assert Faker::App.name.is_a? String
assert Faker::App.version.is_a? String
assert Faker::App.author.is_a? String
def test_ar_name_methods
assert Faker::Name.first_name.is_a? String
assert Faker::Name.last_name.is_a? String
assert Faker::Name.name_with_middle.is_a? String
assert Faker::Name.prefix.is_a? String
end

def test_ar_book_methods
assert Faker::Book.title.is_a? String
assert Faker::Book.author.is_a? String
assert Faker::Book.publisher.is_a? String
assert Faker::Book.genre.is_a? String
def test_ar_team_methods
assert Faker::Team.creature.is_a? String
assert Faker::Team.name.is_a? String
assert Faker::Team.sport.is_a? String
end

def test_ar_default_country
assert_equal Faker::Address.default_country, 'المملكة العربية السعودية'
def test_ar_university_methods
assert Faker::University.name.is_a? String
assert Faker::University.prefix.is_a? String
assert Faker::University.suffix.is_a? String
end
end
10 changes: 5 additions & 5 deletions test/test_bg_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ def test_bg_methods
assert Faker::Address.city_name.is_a? String
assert Faker::Address.city.is_a? String
assert Faker::Address.street_name.is_a? String
assert Faker::Address.street_title.is_a? String
assert Faker::Address.street_address.is_a? String
assert_equal 'България', Faker::Address.default_country
end

def test_internet_methods
def test_bg_internet_methods
assert Faker::Internet.free_email.is_a? String
assert Faker::Internet.domain_suffix.is_a? String
end

def test_name_methods
def test_bg_name_methods
assert Faker::Name.first_name.is_a? String
assert Faker::Name.male_first_name.is_a? String
assert Faker::Name.male_middle_name.is_a? String
Expand All @@ -40,11 +40,11 @@ def test_name_methods
assert Faker::Name.name.is_a? String
end

def test_phone_number_methods
def test_bg_phone_number_methods
assert Faker::PhoneNumber.cell_phone.is_a? String
end

def test_cell_number_starts_wiht_08
def test_bg_cell_number_starts_wiht_08
mobile = Faker::PhoneNumber.cell_phone.gsub(/\D/, '')
assert_equal '08', mobile[0] + mobile[1]
end
Expand Down
7 changes: 4 additions & 3 deletions test/test_ca_cat_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def teardown
Faker::Config.locale = nil
end

def test_ca_methods
def test_ca_cat_address_methods
assert Faker::Address.city.is_a? String
assert Faker::Address.country.is_a? String
assert Faker::Address.building_number.is_a? String
Expand All @@ -23,14 +23,15 @@ def test_ca_methods
assert Faker::Address.street_name.is_a? String
assert Faker::Address.street_address.is_a? String
assert Faker::Address.default_country.is_a? String
assert_equal 'Catalunya', Faker::Address.default_country
end

def test_phone_numbers_start_with_9
def test_ca_cat_phone_numbers_start_with_9
mobile = Faker::PhoneNumber.phone_number.gsub(/\D/, '')
assert_equal '9', mobile[0]
end

def test_cell_numbers_start_with_6
def test_ca_cat_cell_numbers_start_with_6
mobile = Faker::PhoneNumber.cell_phone.gsub(/\D/, '')
assert_equal '6', mobile[0]
end
Expand Down
4 changes: 2 additions & 2 deletions test/test_ca_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def teardown
Faker::Config.locale = nil
end

def test_color_methods
def test_ca_color_methods
assert Faker::Color.name.is_a? String
end

def test_name_methods
def test_ca_name_methods
assert Faker::Name.female_first_name.is_a? String
assert Faker::Name.female_prefix.is_a? String
assert Faker::Name.male_first_name.is_a? String
Expand Down
37 changes: 26 additions & 11 deletions test/test_da_dk_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,32 +11,47 @@ def teardown
Faker::Config.locale = nil
end

def test_address_methods
def test_da_dk_address_methods
assert Faker::Address.street_name.is_a? String
assert Faker::Address.city.is_a? String
assert Faker::Address.city_prefix.is_a? String
assert Faker::Address.city_suffix.is_a? String
assert Faker::Address.country.is_a? String
assert Faker::Address.country_code.is_a? String
assert Faker::Address.state.is_a? String
assert Faker::Address.secondary_address.is_a? String
assert Faker::Address.street_address.is_a? String
assert_match(/[\d]{4}$/, Faker::Address.postcode)
assert_match(/[\d]{1,3}$/, Faker::Address.building_number)
assert_equal 'Danmark', Faker::Address.default_country
end

def test_da_dk_company_methods
assert Faker::Company.suffix.is_a? String
assert Faker::Company.name.is_a? String
end

def test_da_dk_commerce_methods
assert Faker::Commerce.color.is_a? String
assert Faker::Commerce.department.is_a? String
assert Faker::Commerce.product_name.is_a? String
assert Faker::Commerce.name.is_a? String
end

def test_da_dk_internet_methods
assert Faker::Internet.domain_suffix.is_a? String
end

def test_da_dk_names
def test_da_dk_name_methods
assert Faker::Name.name.is_a? String
assert Faker::Name.first_name.is_a? String
assert Faker::Name.last_name.is_a? String
assert Faker::Name.name_with_middle.is_a? String
assert Faker::Name.prefix.is_a? String
end

def test_da_dk_phone_number
def test_da_dk_phone_number_methods
assert_match(/(20)|(30)|(40)[\d\s]+$/, Faker::PhoneNumber.cell_phone)
assert_match(/(\d\d[\s\-]?){4}$/, Faker::PhoneNumber.phone_number)
end

def test_da_dk_postal_code
assert_match(/[\d]{4}$/, Faker::Address.postcode)
end

def test_da_dk_building_number
assert_match(/[\d]{1,3}$/, Faker::Address.building_number)
end
end
20 changes: 16 additions & 4 deletions test/test_de_at_locale.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,43 @@ def teardown
Faker::Config.locale = nil
end

def test_address_methods
def test_de_at_address_methods
assert Faker::Address.country.is_a? String
assert Faker::Address.state.is_a? String
assert Faker::Address.state_abbr.is_a? String
assert Faker::Address.city_name.is_a? String
assert Faker::Address.street_root.is_a? String
assert Faker::Address.street_name.is_a? String
assert Faker::Address.country_code.is_a? String
assert Faker::Address.building_number.is_a? String
assert Faker::Address.secondary_address.is_a? String
assert Faker::Address.postcode.is_a? String
assert Faker::Address.city.is_a? String
assert Faker::Address.street_address.is_a? String
assert_equal('Österreich', Faker::Address.default_country)
end

def test_company_methods
def test_de_at_company_methods
assert Faker::Company.suffix.is_a? String
assert Faker::Company.name.is_a? String
assert Faker::Company.legal_form.is_a? String
end

def test_internet_methods
def test_de_at_internet_methods
assert Faker::Internet.free_email.is_a? String
assert Faker::Internet.domain_suffix.is_a? String
end

def test_name_methods
def test_de_at_name_methods
assert Faker::Name.first_name.is_a? String
assert Faker::Name.last_name.is_a? String
assert Faker::Name.prefix.is_a? String
assert Faker::Name.nobility_title_prefix.is_a? String
assert Faker::Name.name.is_a? String
assert Faker::Name.name_with_middle.is_a? String
end

def test_de_at_phone_number_methods
assert_match(/(43)|(06)|(436)[\d\s]+$/, Faker::PhoneNumber.cell_phone)
end
end
Loading

0 comments on commit 6291fdf

Please sign in to comment.