From 52bd90d8a2b9dd947b986ae2151057cb9b9d757f Mon Sep 17 00:00:00 2001 From: Adam Edwards Date: Fri, 11 Dec 2015 23:00:38 -0800 Subject: Fix unit test break in network_file_spec on non-Windows platforms --- spec/unit/provider/remote_file/network_file_spec.rb | 3 +++ 1 file changed, 3 insertions(+) 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" } -- cgit v1.2.1