From 831093c178dc14d15123bc1c8a5e15cc1e0ff70b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 13 Dec 2019 17:10:13 +0100 Subject: [PATCH] Revert "Write & read dummy gems binarily" This reverts commit f11c4757a17bea029e1a83ad67c425ccf16133ff. --- spec/install/redownload_spec.rb | 2 +- spec/support/builders.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/install/redownload_spec.rb b/spec/install/redownload_spec.rb index c880b8bb150..818c33bd613 100644 --- a/spec/install/redownload_spec.rb +++ b/spec/install/redownload_spec.rb @@ -17,7 +17,7 @@ bundle! :install, flag => true expect(out).to include "Installing rack 1.0.0" - expect(rack_lib.binread).to eq("RACK = '1.0.0'\n") + expect(rack_lib.open(&:read)).to eq("RACK = '1.0.0'\n") expect(the_bundle).to include_gems "rack 1.0.0" end diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 4a8d6997406..76c9fff4639 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -632,7 +632,7 @@ def @spec.validate(*); end @files.each do |file, source| file = Pathname.new(path).join(file) FileUtils.mkdir_p(file.dirname) - File.open(file, "wb") {|f| f.puts source } + File.open(file, "w") {|f| f.puts source } end @spec.files = @files.keys path