Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #6668 - eregon:fix-encoding-spec-from-6661, r=deivid-ro…
Browse files Browse the repository at this point in the history
…driguez

Fix encoding spec from #6661 to also work 1.9.3

* String#b is Ruby 2.0+.

### What was the problem that led to this PR?

The CI is failing on the `1-16-stable` branch.

### What was your diagnosis of the problem?

The CI on master doesn't run against MRI 1.9.3, so this failure slipped in in #6661.
Probably testing against MRI 1.9.3 should be done on `master` too?

### What is your fix for the problem, implemented in this PR?

Make the spec work on 1.9.3.

cc @hsbt
  • Loading branch information
bundlerbot committed Aug 20, 2018
2 parents 3a2492e + f381a87 commit 72f27b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/install/gemfile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
# NOTE: This works thanks to #eval interpreting the magic encoding comment
install_gemfile <<-G
# encoding: iso-8859-1
str = "Il #{"\xE9".b}tait une fois ..."
str = "Il #{"\xE9".dup.force_encoding("binary")}tait une fois ..."
puts "The source encoding is: " + str.encoding.name
G

Expand Down

0 comments on commit 72f27b0

Please sign in to comment.