Sha256: a65174a4e411bdb6e241aa53f81f7acc6fc3131dafecdc2963b1a37d83970132
Contents?: true
Size: 603 Bytes
Versions: 8
Compression:
Stored size: 603 Bytes
Contents
# encoding: utf-8 require 'helper' # Author: wiseleyb<wiseleyb@gmail.com> class TestPhoneNumberNL < Test::Unit::TestCase def setup @tester = Faker::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
8 entries across 8 versions & 2 rubygems