ffaker 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # encoding: utf-8
3
+
4
+ require 'helper'
5
+
6
+ class TestFakerNameAR < Test::Unit::TestCase
7
+ include DeterministicHelper
8
+
9
+ assert_methods_are_deterministic(
10
+ FFaker::NameAR,
11
+ :first_name_male, :first_name_female, :last_name,
12
+ :name_male, :name_female
13
+ )
14
+
15
+ def setup
16
+ @tester = FFaker::NameAR
17
+ end
18
+
19
+ def test_first_name_male
20
+ assert_include(@tester::FIRST_NAMES_MALE, @tester.first_name_male)
21
+ end
22
+
23
+ def test_first_name_female
24
+ assert_include(@tester::FIRST_NAMES_FEMALE, @tester.first_name_female)
25
+ end
26
+
27
+ def test_last_name
28
+ assert_include(@tester::LAST_NAMES, @tester.last_name)
29
+ end
30
+
31
+ def test_name_male
32
+ first_name, last_name = @tester.name_male.split(/\s+/, 2)
33
+ assert_include(@tester::FIRST_NAMES_MALE, first_name)
34
+ assert_include(@tester::LAST_NAMES, last_name)
35
+ end
36
+
37
+ def test_name_female
38
+ first_name, last_name = @tester.name_female.split(/\s+/, 2)
39
+ assert_include(@tester::FIRST_NAMES_FEMALE, first_name)
40
+ assert_include(@tester::LAST_NAMES, last_name)
41
+ end
42
+ end
@@ -7,7 +7,8 @@ class TestPhoneNumer < Test::Unit::TestCase
7
7
 
8
8
  assert_methods_are_deterministic(
9
9
  FFaker::PhoneNumber,
10
- :phone_number, :area_code, :exchange_code, :short_phone_number, :phone_calling_code, :imei
10
+ :phone_number, :area_code, :exchange_code, :short_phone_number,
11
+ :phone_calling_code, :imei
11
12
  )
12
13
 
13
14
  def test_phone_number
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ffaker
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - https://github.com/ffaker/ffaker/graphs/contributors
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-01 00:00:00.000000000 Z
12
+ date: 2017-02-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -71,6 +71,7 @@ files:
71
71
  - lib/ffaker/address_gr.rb
72
72
  - lib/ffaker/address_id.rb
73
73
  - lib/ffaker/address_in.rb
74
+ - lib/ffaker/address_ja.rb
74
75
  - lib/ffaker/address_kr.rb
75
76
  - lib/ffaker/address_mx.rb
76
77
  - lib/ffaker/address_nl.rb
@@ -131,6 +132,20 @@ files:
131
132
  - lib/ffaker/data/address_in/state_abbr
132
133
  - lib/ffaker/data/address_in/union_territory
133
134
  - lib/ffaker/data/address_in/union_territory_abbr
135
+ - lib/ffaker/data/address_ja/city
136
+ - lib/ffaker/data/address_ja/county
137
+ - lib/ffaker/data/address_ja/designated_city
138
+ - lib/ffaker/data/address_ja/prefecture
139
+ - lib/ffaker/data/address_ja/street
140
+ - lib/ffaker/data/address_ja/tokyo_ward
141
+ - lib/ffaker/data/address_ja/village
142
+ - lib/ffaker/data/address_ja/ward
143
+ - lib/ffaker/data/address_jp/city
144
+ - lib/ffaker/data/address_jp/designated_city
145
+ - lib/ffaker/data/address_jp/street
146
+ - lib/ffaker/data/address_jp/tokyo_ward
147
+ - lib/ffaker/data/address_jp/village
148
+ - lib/ffaker/data/address_jp/ward
134
149
  - lib/ffaker/data/address_kr/boroughs
135
150
  - lib/ffaker/data/address_kr/cities
136
151
  - lib/ffaker/data/address_mx/state
@@ -230,6 +245,9 @@ files:
230
245
  - lib/ffaker/data/name/first_names_female
231
246
  - lib/ffaker/data/name/first_names_male
232
247
  - lib/ffaker/data/name/last_names
248
+ - lib/ffaker/data/name_ar/first_names_female
249
+ - lib/ffaker/data/name_ar/first_names_male
250
+ - lib/ffaker/data/name_ar/last_names
233
251
  - lib/ffaker/data/name_br/first_names_female
234
252
  - lib/ffaker/data/name_br/first_names_male
235
253
  - lib/ffaker/data/name_br/last_names
@@ -358,6 +376,7 @@ files:
358
376
  - lib/ffaker/movie.rb
359
377
  - lib/ffaker/music.rb
360
378
  - lib/ffaker/name.rb
379
+ - lib/ffaker/name_ar.rb
361
380
  - lib/ffaker/name_br.rb
362
381
  - lib/ffaker/name_cn.rb
363
382
  - lib/ffaker/name_cs.rb
@@ -437,6 +456,7 @@ files:
437
456
  - test/test_address_gr.rb
438
457
  - test/test_address_id.rb
439
458
  - test/test_address_in.rb
459
+ - test/test_address_ja.rb
440
460
  - test/test_address_kr.rb
441
461
  - test/test_address_mx.rb
442
462
  - test/test_address_nl.rb
@@ -507,6 +527,7 @@ files:
507
527
  - test/test_movie.rb
508
528
  - test/test_music.rb
509
529
  - test/test_name.rb
530
+ - test/test_name_ar.rb
510
531
  - test/test_name_br.rb
511
532
  - test/test_name_cn.rb
512
533
  - test/test_name_cs.rb
@@ -602,6 +623,7 @@ test_files:
602
623
  - test/test_address_gr.rb
603
624
  - test/test_address_id.rb
604
625
  - test/test_address_in.rb
626
+ - test/test_address_ja.rb
605
627
  - test/test_address_kr.rb
606
628
  - test/test_address_mx.rb
607
629
  - test/test_address_nl.rb
@@ -672,6 +694,7 @@ test_files:
672
694
  - test/test_movie.rb
673
695
  - test/test_music.rb
674
696
  - test/test_name.rb
697
+ - test/test_name_ar.rb
675
698
  - test/test_name_br.rb
676
699
  - test/test_name_cn.rb
677
700
  - test/test_name_cs.rb