Sha256: 718e6522832048c0d78b047a9d61743d553f7715de030b31d4749ec960c5194a
Contents?: true
Size: 774 Bytes
Versions: 10
Compression:
Stored size: 774 Bytes
Contents
# encoding: utf-8 require 'helper' # Author: wiseleyb<wiseleyb@gmail.com> class TestPhoneNumberNL < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFaker::PhoneNumberNL, :mobile_phone_number, :phone_number, :international_phone_number ) def setup @tester = FFaker::PhoneNumberNL end def test_mobile_phone_prefix assert @tester.mobile_phone_number.start_with?('06') end def test_phone_prefix assert @tester.phone_number.start_with?('0') end def test_phone_number 10.times do assert_match(/^0([\s\-]*\d){9}$/, @tester.phone_number) end end def test_international_phone_number 10.times do assert_match(/^\+31/, @tester.international_phone_number) end end end
Version data entries
10 entries across 10 versions & 1 rubygems