Sha256: 8068c598534bbde8ac6f1a701b132e474b2c866e98e2d809fc05c1ecf5249226

Contents?: true

Size: 409 Bytes

Versions: 5

Compression:

Stored size: 409 Bytes

Contents

require_relative '../test_helper'

class TestValidators < Test::Unit::TestCase
  include MyMoip::Validators

  def test_valid_url_validator
  	assert_equal valid_url?('http://valid.url.me'), true
  	assert_equal valid_url?('https://valid.url.me'), true
  	assert_equal valid_url?('ftp://valid.url.me'), false
  	assert_equal valid_url?('valid.url.me'), false
  	assert_equal valid_url?('me'), false
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
edools_mymoip-0.8.1 test/lib/test_validators.rb
mymoip-0.10.0 test/lib/test_validators.rb
mymoip-0.9.0 test/lib/test_validators.rb
mymoip-0.8.0 test/lib/test_validators.rb
mymoip-0.7.0 test/lib/test_validators.rb