Suggest different variables to use if we want to tunnel both v4 and v6
[mirror/dsa-puppet.git] / 3rdparty / modules / stdlib / spec / acceptance / validate_absolute_path_spec.rb
1 require 'spec_helper_acceptance'
2
3 describe 'validate_absolute_path function' do
4   describe 'success' do
5     ['C:/', 'C:\\\\', 'C:\\\\WINDOWS\\\\System32', 'C:/windows/system32', 'X:/foo/bar', 'X:\\\\foo\\\\bar', '/var/tmp', '/var/lib/puppet', '/var/opt/../lib/puppet'].each do |path|
6       pp = <<-DOC
7         $one = '#{path}'
8         validate_absolute_path($one)
9       DOC
10       it "validates a single argument #{path}" do
11         apply_manifest(pp, :catch_failures => true)
12       end
13     end
14   end
15   describe 'failure' do
16     it 'handles improper number of arguments'
17     it 'handles relative paths'
18   end
19 end