Sha256: 28b20f4cac7ae14989da98d99ceb29007e81bbd1ee0385d2ab70bb1cbe57cefb
Contents?: true
Size: 704 Bytes
Versions: 1
Compression:
Stored size: 704 Bytes
Contents
# frozen_string_literal: true require_relative '../../test_helper' class TestFakerPhone < Test::Unit::TestCase def setup @tester = Faker::PhoneNumber @phone_with_country_code_regex = /\A\+(\s|\d|-|\(|\)|x|\.)*\z/ end def test_country_code assert @tester.country_code.match(/\A\+[\d|-]+\z/) end def test_phone_number_with_country_code assert @tester.phone_number_with_country_code.match(@phone_with_country_code_regex) end def test_cell_phone_with_country_code assert @tester.cell_phone_with_country_code.match(@phone_with_country_code_regex) end def test_cell_phone_in_e164 assert @tester.cell_phone_in_e164.match(@phone_with_country_code_regex) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
logstash-output-scalyr-0.1.7 | vendor/bundle/jruby/2.5.0/bundler/gems/faker-e1bd4a5a5777/test/faker/default/test_faker_phone_number.rb |