Sha256: c6635f6c47fee67a0f82585276af95ae62f1622b856377d4453c61405d1e6930
Contents?: true
Size: 760 Bytes
Versions: 1
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require_relative 'helper' class TestPhoneNumberNL < Test::Unit::TestCase include DeterministicHelper assert_methods_are_deterministic( FFakerTW::PhoneNumberNL, :mobile_phone_number, :phone_number, :international_phone_number ) def setup @tester = FFakerTW::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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ffakerTW-0.1.0 | test/test_phone_number_nl.rb |