summaryrefslogtreecommitdiff
path: root/spec/unit/provider/remote_directory_spec.rb
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2016-03-31 13:28:47 -0700
committerJohn Keiser <john@johnkeiser.com>2016-08-16 09:38:09 -0700
commit8bf1d71f97200e3516006c6c4852ba2809c40e46 (patch)
treea8d90f24a90c83a222e205831cff819c596a95e8 /spec/unit/provider/remote_directory_spec.rb
parent5134cdc5c4b855e088eedac28cc0567a9233e1e4 (diff)
downloadchef-8bf1d71f97200e3516006c6c4852ba2809c40e46.tar.gz
Spec break on Windows due to temp dir and short path names
Diffstat (limited to 'spec/unit/provider/remote_directory_spec.rb')
-rw-r--r--spec/unit/provider/remote_directory_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/provider/remote_directory_spec.rb b/spec/unit/provider/remote_directory_spec.rb
index b6fd4cfc8e..cb1b6e3cd8 100644
--- a/spec/unit/provider/remote_directory_spec.rb
+++ b/spec/unit/provider/remote_directory_spec.rb
@@ -121,7 +121,7 @@ describe Chef::Provider::RemoteDirectory do
@node.automatic_attrs[:platform] = :just_testing
@node.automatic_attrs[:platform_version] = :just_testing
- @destination_dir = Dir.mktmpdir << "/remote_directory_test"
+ @destination_dir = make_canonical_temp_directory << "/remote_directory_test"
@resource.path(@destination_dir)
end