diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-13 17:10:13 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-12-13 18:31:03 +0100 |
commit | 831093c178dc14d15123bc1c8a5e15cc1e0ff70b (patch) | |
tree | 60ec8780bb714246949b235e621139c586752dd3 | |
parent | 3bd06e7a8bb427945b9a0c7c108c02bd96d7c1c9 (diff) | |
download | bundler-cleanup_windows_ci_logs.tar.gz |
Revert "Write & read dummy gems binarily"cleanup_windows_ci_logs
This reverts commit f11c4757a17bea029e1a83ad67c425ccf16133ff.
-rw-r--r-- | spec/install/redownload_spec.rb | 2 | ||||
-rw-r--r-- | 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 c880b8bb15..818c33bd61 100644 --- a/spec/install/redownload_spec.rb +++ b/spec/install/redownload_spec.rb @@ -17,7 +17,7 @@ RSpec.describe "bundle install" do 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 4a8d699740..76c9fff463 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -632,7 +632,7 @@ module Spec @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 |