summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/install/redownload_spec.rb2
-rw-r--r--spec/support/builders.rb2
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