summaryrefslogtreecommitdiffstats
path: root/spec/unit/network
diff options
context:
space:
mode:
authorJosh Cooper <josh@puppetlabs.com>2011-07-18 23:05:35 -0700
committerJacob Helwig <jacob@puppetlabs.com>2011-08-19 13:48:29 -0700
commitc26f3e5f79fa2caa17d18be41e32871ac09b1dc4 (patch)
treea27fb91f82ba4e98bb4ed4281151a150f0b51fac /spec/unit/network
parentbfeb33734358528209221be09b97ffc8513d3f87 (diff)
downloadpuppet-c26f3e5f79fa2caa17d18be41e32871ac09b1dc4.tar.gz
puppet-c26f3e5f79fa2caa17d18be41e32871ac09b1dc4.tar.xz
puppet-c26f3e5f79fa2caa17d18be41e32871ac09b1dc4.zip
Fix tests with "relative" paths on Windows
Absolute paths on Unix, e.g. /foo/bar, are not absolute on Windows, which breaks many test cases. This commit adds a method to PuppetSpec::Files.make_absolute that makes the path absolute in test cases. On Unix (Puppet.features.posix?) it is a no-op. On Windows, (Puppet.features.microsoft_windows?) the drive from the current working directory is prepended. Reviewed-by: Jacob Helwig <jacob@puppetlabs.com> (cherry picked from commit 462a95e3d077b1915a919399b846068816c84583) Conflicts: spec/unit/parser/functions/extlookup_spec.rb
Diffstat (limited to 'spec/unit/network')
0 files changed, 0 insertions, 0 deletions