summaryrefslogtreecommitdiff
path: root/spec/unit/knife/data_bag_from_file_spec.rb
diff options
context:
space:
mode:
authorAdam Edwards <adamed@opscode.com>2016-03-31 13:28:47 -0700
committerAdam Edwards <adamed@opscode.com>2016-03-31 14:40:27 -0700
commite25b75e9fcd26ccc9c9094a43b614306de1047db (patch)
tree7085a050c9ca924e6998a71067664690885f8829 /spec/unit/knife/data_bag_from_file_spec.rb
parentd1ae67938a6e02db9f122ce646d62b7b8347f6a3 (diff)
downloadchef-e25b75e9fcd26ccc9c9094a43b614306de1047db.tar.gz
Spec break on Windows due to temp dir and short path namesadamedx/windows-ruby22-unit-tmpdir
Diffstat (limited to 'spec/unit/knife/data_bag_from_file_spec.rb')
-rw-r--r--spec/unit/knife/data_bag_from_file_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/knife/data_bag_from_file_spec.rb b/spec/unit/knife/data_bag_from_file_spec.rb
index 0b6f389e87..bf6bd82a68 100644
--- a/spec/unit/knife/data_bag_from_file_spec.rb
+++ b/spec/unit/knife/data_bag_from_file_spec.rb
@@ -52,7 +52,7 @@ describe Chef::Knife::DataBagFromFile do
k
end
- let(:tmp_dir) { Dir.mktmpdir }
+ let(:tmp_dir) { make_canonical_temp_directory }
let(:db_folder) { File.join(tmp_dir, data_bags_path, bag_name) }
let(:db_file) { Tempfile.new(["data_bag_from_file_test", ".json"], db_folder) }
let(:db_file2) { Tempfile.new(["data_bag_from_file_test2", ".json"], db_folder) }