forked from faker-ruby/faker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test_he_locale.rb
31 lines (26 loc) · 896 Bytes
/
test_he_locale.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# frozen_string_literal: true
require_relative 'test_helper'
class TestHeLocale < Test::Unit::TestCase
def setup
Faker::Config.locale = 'he'
end
def teardown
Faker::Config.locale = nil
end
def test_he_address_methods
assert Faker::Address.city_prefix.is_a? String
assert Faker::Address.city.is_a? String
assert Faker::Address.street_prefix.is_a? String
assert Faker::Address.building_number.is_a? String
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('ישראל', Faker::Address.default_country)
end
def test_he_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.name.is_a? String
end
end