1 #! /usr/bin/env ruby -S rspec
2 require 'spec_helper_acceptance'
4 describe 'validate_ipv6_address function' do
6 it 'validates a single argument' do
8 $one = '3ffe:0505:0002::'
9 validate_ipv6_address($one)
12 apply_manifest(pp, :catch_failures => true)
14 it 'validates an multiple arguments' do
16 $one = '3ffe:0505:0002::'
17 $two = '3ffe:0505:0001::'
18 validate_ipv6_address($one,$two)
21 apply_manifest(pp, :catch_failures => true)
25 it 'handles improper number of arguments'
26 it 'handles ipv6 addresses'
27 it 'handles non-ipv6 strings'
29 it 'handles no arguments'