3 require File.dirname(__FILE__) + '/../../../../../plugins/mcollective/validator/ipv4address_validator.rb'
7 describe "#validate" do
8 it "should raise an exception if the supplied value is not an ipv4 address" do
10 Ipv4addressValidator.validate("foobar")
11 }.to raise_error(ValidatorError, "value should be an ipv4 address")
14 it "should not raise an exception if the supplied value is an ipv4 address" do
15 Ipv4addressValidator.validate("1.2.3.4")