summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xspec/unit/type/file.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/unit/type/file.rb b/spec/unit/type/file.rb
index 548fc1b8f..b7a27d1f1 100755
--- a/spec/unit/type/file.rb
+++ b/spec/unit/type/file.rb
@@ -209,6 +209,7 @@ describe Puppet::Type.type(:file) do
end
describe "when using Win32 filenames" do
+ confine "Only works on Win32" => Puppet.features.win32?
describe "on Win32 systems" do
before do
Puppet.features.stubs(:posix?).returns(false)
@@ -271,6 +272,7 @@ describe Puppet::Type.type(:file) do
describe "when using UNC filenames" do
describe "on Win32 systems" do
+ confine "Only works on Win32" => Puppet.features.win32?
before do
Puppet.features.stubs(:posix?).returns(false)
Puppet.features.stubs(:win32?).returns(true)