Sha256: 8f6faf859788b2ca1c852941e966194c03507225f2f8a8a48607bad743334b3f
Contents?: true
Size: 673 Bytes
Versions: 6
Compression:
Stored size: 673 Bytes
Contents
require 'test/unit' require 'phone_number_validator' ## # This class respresents the testing-unit for this gem app # # <b>Inherits from:</b> # Test::Unit::TestCase class PhoneNumberValidatorTest < Test::Unit::TestCase ## # This 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 ## # This 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
6 entries across 6 versions & 1 rubygems