diff options
author | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-12-21 13:05:59 +0900 |
---|---|---|
committer | SHIBATA Hiroshi <hsbt@ruby-lang.org> | 2017-12-21 16:48:43 +0900 |
commit | f7414bcb17fe1bd67246021251b5f0527bd6afd1 (patch) | |
tree | b7dff28eab9ba0d26b4b888f1342226a637641ae /spec/commands/pristine_spec.rb | |
parent | 2b24dead712cc823b4774ee4cd5444466b0df9e5 (diff) | |
download | bundler-f7414bcb17fe1bd67246021251b5f0527bd6afd1.tar.gz |
Added workarounds for Travis specific issues.
Diffstat (limited to 'spec/commands/pristine_spec.rb')
-rw-r--r-- | spec/commands/pristine_spec.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb index 54eb2c0b20..4642a8167d 100644 --- a/spec/commands/pristine_spec.rb +++ b/spec/commands/pristine_spec.rb @@ -46,7 +46,9 @@ RSpec.describe "bundle pristine" do bundle! "install" bundle! "pristine", :system_bundler => true bundle! "-v", :system_bundler => true - expect(out).to end_with(Bundler::VERSION) + # An old rubygems couldn't handle a correct version of vendoered bundler. + bundler_version = Gem::VERSION < "2.1" ? "1.16.0" : Bundler::VERSION + expect(out).to end_with(bundler_version) end end |