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

Version Path
mcollective-client-2.7.0 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.6.1 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.6.0 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.5.3 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.5.2 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.5.1 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.5.0 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.5.0.rc1 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.4.1 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.4.0 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.2.4 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.2.3 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.2.2 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.2.1 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb
mcollective-client-2.2.0 spec/unit/plugins/mcollective/validator/ipv6address_validator_spec.rb