Sha256: fdd4d6712974472e16aaae777402a8577584c3d3b41fd8c232a989f7409e1942

Contents?: true

Size: 391 Bytes

Versions: 22

Compression:

Stored size: 391 Bytes

Contents

require 'test/unit'
require 'phone_number_validator'

class PhoneNumberValidatorTest < Test::Unit::TestCase
  def test_valid_phone_number
    assert_equal true,
    PhoneNumberValidator.validate_phone_number('+1 (949) 355-6244 ext. 198842')
  end
  def test_invalid_phone_number
    assert_equal false,
    PhoneNumberValidator.validate_phone_number('94643823637337')
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
phone_number_validator-0.2.1 test/test_phone_number_validator.rb
phone_number_validator-0.2.0 test/test_phone_number_validator.rb
phone_number_validator-0.1.9 test/test_phone_number_validator.rb
phone_number_validator-0.1.8 test/test_phone_number_validator.rb
phone_number_validator-0.1.7 test/test_phone_number_validator.rb
phone_number_validator-0.1.6 test/test_phone_number_validator.rb
phone_number_validator-0.1.5 test/test_phone_number_validator.rb
phone_number_validator-0.1.4 test/test_phone_number_validator.rb
phone_number_validator-0.1.3 test/test_phone_number_validator.rb
phone_number_validator-0.1.2 test/test_phone_number_validator.rb
phone_number_validator-0.1.1 test/test_phone_number_validator.rb
phone_number_validator-0.1.0 test/test_phone_number_validator.rb
phone_number_validator-0.0.9 test/test_phone_number_validator.rb
phone_number_validator-0.0.8 test/test_phone_number_validator.rb
phone_number_validator-0.0.7 test/test_phone_number_validator.rb
phone_number_validator-0.0.6 test/test_phone_number_validator.rb
phone_number_validator-0.0.5 test/test_phone_number_validator.rb
phone_number_validator-0.0.4 test/test_phone_number_validator.rb
phone_number_validator-0.0.3 test/test_phone_number_validator.rb
phone_number_validator-0.0.2 test/test_phone_number_validator.rb