Sha256: 4d0746235f8033d1ddc15303b36b150741913d14b32819ff0c9de05148c9b5bf
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
# frozen_string_literal: true require_relative 'helper' class TestPhoneNumberPL < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::PhoneNumberPL, :home_work_phone_number, :mobile_phone_number, :phone_number, :area_code, :mobile_prefix, :international_mobile_phone_number, :international_home_work_phone_number, :international_phone_number ) def setup @tester = FFakerTW::PhoneNumberPL end def test_home_work_phone_number assert_match(/\A\d{9}\z/, @tester.home_work_phone_number) end def test_mobile_phone_number assert_match(/\A\d{9}\z/, @tester.mobile_phone_number) end def test_phone_number assert_match(/\A\d{9}\z/, @tester.phone_number) end def test_country_code assert_equal(@tester::COUNTRY_CODE, '+48') end def test_international_mobile_phone_number assert_match(/\A\+48 \d{9}\z/, @tester.international_mobile_phone_number) end def test_international_home_work_phone_number assert_match(/\A\+48 \d{9}\z/, @tester.international_home_work_phone_number) end def test_international_phone_number assert_match(/\A\+48 \d{9}\z/, @tester.international_phone_number) end def test_area_code assert_include(@tester::AREA_CODES, @tester.area_code) end def test_mobile_prefixes assert_include(@tester::MOBILE_PREFIXES, @tester.mobile_prefix) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_phone_number_pl.rb |