diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb index b6288b9463..46931e9ca5 100644 --- a/spec/bundler/support/builders.rb +++ b/spec/bundler/support/builders.rb @@ -421,7 +421,7 @@ module Spec build_path = @context.tmp + full_name bundler_path = build_path + "#{full_name}.gem" - Dir.mkdir build_path unless File.directory?(build_path) + FileUtils.mkdir_p build_path @context.shipped_files.each do |shipped_file| target_shipped_file = shipped_file