Sha256: 04a16ba3b5bf464f4cc77aea2524fd9ca3c221027fb92cbc3236ac7111cd0ca1
Contents?: true
Size: 542 Bytes
Versions: 6
Compression:
Stored size: 542 Bytes
Contents
require "spec_helper" describe Validators::Ip do context "IPv4" do VALID_IPV4.each do |ip| it "should accept #{ip.inspect} as ip address" do Validators::Ip.should be_v4(ip) end end end context "IPv6" do VALID_IPV6.each do |ip| it "should accept #{ip.inspect} as ip address" do Validators::Ip.should be_v6(ip) end end end (VALID_IPV4 + VALID_IPV6).each do |ip| it "should accept #{ip.inspect} as ip address" do Validators::Ip.should be_valid(ip) end end end
Version data entries
6 entries across 6 versions & 1 rubygems