Sha256: dc01b6ac7508c859927c3cc969a9c9d555d0c5a5bc77b3052961d89bde264ad3
Contents?: true
Size: 1.17 KB
Versions: 1
Compression:
Stored size: 1.17 KB
Contents
# frozen_string_literal: true require_relative 'helper' class TestPhoneNumberDA < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::PhoneNumberDA, :home_work_phone_number, :mobile_phone_number, :phone_number, :country_code, :international_mobile_phone_number, :international_home_work_phone_number, :international_phone_number ) def setup @tester = FFakerTW::PhoneNumberDA end def test_home_work_phone_number assert_match(/\A\d{8}\z/, @tester.home_work_phone_number) end def test_mobile_phone_number assert_match(/\A\d{8}\z/, @tester.mobile_phone_number) end def test_phone_number assert_match(/\A\d{8}\z/, @tester.phone_number) end def test_country_code assert_equal '+45', @tester.country_code end def test_international_mobile_phone_number assert_match(/\A\+45 \d{8}\z/, @tester.international_mobile_phone_number) end def test_international_home_work_phone_number assert_match(/\A\+45 \d{8}\z/, @tester.international_home_work_phone_number) end def test_international_phone_number assert_match(/\A\+45 \d{8}\z/, @tester.international_phone_number) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_phone_number_da.rb |