diff options
-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 331c0d11d2..c7f299487c 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -620,7 +620,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 |