diff options
author | Benoit Daloze <eregontp@gmail.com> | 2018-08-13 16:21:57 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2018-08-13 16:21:57 +0200 |
commit | a98a849e8d72fb95f7c5ad995110785e64ead247 (patch) | |
tree | 3ee3f4e49641f8b4ea1678cec8c19e3182085564 | |
parent | 07ca8e87324421de18bfcfee8348a47d99a6f62b (diff) | |
download | bundler-a98a849e8d72fb95f7c5ad995110785e64ead247.tar.gz |
Skips specs on Ruby 1.8 as 1.8 does not have encodings
-rw-r--r-- | spec/install/gemfile_spec.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/install/gemfile_spec.rb b/spec/install/gemfile_spec.rb index fed738a9ca..ad254a87e9 100644 --- a/spec/install/gemfile_spec.rb +++ b/spec/install/gemfile_spec.rb @@ -115,6 +115,8 @@ RSpec.describe "bundle install" do context "with a Gemfile containing non-US-ASCII characters" do it "reads the Gemfile with the UTF-8 encoding by default" do + skip "Ruby 1.8 has no encodings" if RUBY_VERSION < "1.9" + install_gemfile <<-G str = "Il était une fois ..." puts "The source encoding is: " + str.encoding.name @@ -126,6 +128,8 @@ RSpec.describe "bundle install" do end it "respects the magic encoding comment" do + skip "Ruby 1.8 has no encodings" if RUBY_VERSION < "1.9" + # NOTE: This works thanks to #eval interpreting the magic encoding comment install_gemfile <<-G # encoding: iso-8859-1 |