Sha256: e06a8c11bbe0febc2aa02ccc5cb2e92c25f002fe03f4844ba2cb6f14a6aa33ed
Contents?: true
Size: 645 Bytes
Versions: 15
Compression:
Stored size: 645 Bytes
Contents
#!/usr/bin/env rspec require 'spec_helper' require File.dirname(__FILE__) + '/../../../../../plugins/mcollective/validator/ipv6address_validator.rb' module MCollective module Validator describe "#validate" do it "should raise an exception if the supplied value is not an ipv6 address" do expect{ Ipv6addressValidator.validate("foobar") }.to raise_error(ValidatorError, "value should be an ipv6 address") end it "should not raise an exception if the supplied value is an ipv6 address" do Ipv6addressValidator.validate("2001:db8:85a3:8d3:1319:8a2e:370:7348") end end end end
Version data entries
15 entries across 15 versions & 1 rubygems