Sha256: 6f1e3373a2e15b679cf7c9eef3bc994289bd67a8a7ca858e83b5ee9d7f01fb60
Contents?: true
Size: 711 Bytes
Versions: 1
Compression:
Stored size: 711 Bytes
Contents
require 'test/unit' require 'phone_number_validator' ## # = Phone Number \Validator Test Class # # <b>Inherits from:</b> # Test::Unit::TestCase class PhoneNumberValidatorTest < Test::Unit::TestCase ## # == Positive Test # # Inputs a valid phone number and expects the output to be <b>true</b> def test_valid_phone_number assert_equal true, PhoneNumberValidator.validate_phone_number('+1 (949) 355-6244 ext. 198842') end ## # == Negative Test # # Inputs an invalid phone number and expects the output to be <b>false</b> def test_invalid_phone_number assert_equal false, PhoneNumberValidator.validate_phone_number('94643823637337') end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
phone_number_validator-0.2.8 | test/test_phone_number_validator.rb |