diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb index b6288b9463bb70..46931e9ca530ba 100644 --- a/spec/bundler/support/builders.rb +++ b/spec/bundler/support/builders.rb @@ -421,7 +421,7 @@ def _build(options = {}) 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