X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;ds=sidebyside;f=spec%2Funit%2Fplugins%2Fmcollective%2Fvalidator%2Fipv4address_validator_spec.rb;fp=spec%2Funit%2Fplugins%2Fmcollective%2Fvalidator%2Fipv4address_validator_spec.rb;h=0000000000000000000000000000000000000000;hb=d1f1649ba43c5cbc43c4beb2380096ba051d646a;hp=49183b88d2d820fdf8963970d28c0998062829e5;hpb=8a3fe7daeecccf43dd71c59371c5005400d35101;p=packages%2Fprecise%2Fmcollective.git diff --git a/spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb b/spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb deleted file mode 100644 index 49183b8..0000000 --- a/spec/unit/plugins/mcollective/validator/ipv4address_validator_spec.rb +++ /dev/null @@ -1,19 +0,0 @@ -#!/usr/bin/env rspec -require 'spec_helper' -require File.dirname(__FILE__) + '/../../../../../plugins/mcollective/validator/ipv4address_validator.rb' - -module MCollective - module Validator - describe "#validate" do - it "should raise an exception if the supplied value is not an ipv4 address" do - expect{ - Ipv4addressValidator.validate("foobar") - }.to raise_error(ValidatorError, "value should be an ipv4 address") - end - - it "should not raise an exception if the supplied value is an ipv4 address" do - Ipv4addressValidator.validate("1.2.3.4") - end - end - end -end