+++ /dev/null
-require 'spec_helper_acceptance'
-
-describe 'validate_absolute_path function' do
- describe 'success' do
- ['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|
- pp = <<-DOC
- $one = '#{path}'
- validate_absolute_path($one)
- DOC
- it "validates a single argument #{path}" do
- apply_manifest(pp, :catch_failures => true)
- end
- end
- end
- describe 'failure' do
- it 'handles improper number of arguments'
- it 'handles relative paths'
- end
-end