summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2015-12-11 23:00:38 -0800
committerAdam Edwards <adamed@opscode.com>2015-12-11 23:00:38 -0800
commit52bd90d8a2b9dd947b986ae2151057cb9b9d757f (patch)
treeaf19507d6701610b8bb0dd70c88de018e8c6f53b
parentd9ad3647ea93bd0f9d68fcff95f54d8be1aa8ea6 (diff)
downloadchef-52bd90d8a2b9dd947b986ae2151057cb9b9d757f.tar.gz
Fix unit test break in network_file_spec on non-Windows platforms
-rw-r--r--spec/unit/provider/remote_file/network_file_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/unit/provider/remote_file/network_file_spec.rb b/spec/unit/provider/remote_file/network_file_spec.rb
index c39b6d0951..a48a191ab1 100644
--- a/spec/unit/provider/remote_file/network_file_spec.rb
+++ b/spec/unit/provider/remote_file/network_file_spec.rb
@@ -20,6 +20,9 @@
require 'spec_helper'
describe Chef::Provider::RemoteFile::NetworkFile do
+ before do
+ allow(::Chef::Platform).to receive(:windows?).and_return(true)
+ end
let(:source) { "\\\\foohost\\fooshare\\Foo.tar.gz" }