diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-10 22:55:38 +0100 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-02-10 23:03:59 +0100 |
commit | cea7966434e80faa873cb8788953ff98b88b35be (patch) | |
tree | 1f1d7f01df7c2569f85b7077d9dc8195b6fbcb85 | |
parent | 0ca2f4ea781abf697c484df6ba26feeded744854 (diff) | |
download | bundler-cea7966434e80faa873cb8788953ff98b88b35be.tar.gz |
Properly restrict rubygems version for failing specs
These specs need https://github.com/rubygems/rubygems/pull/1527 to pass,
so restrict them to rubygems version containing that.
-rw-r--r-- | spec/commands/exec_spec.rb | 2 | ||||
-rw-r--r-- | spec/commands/pristine_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/commands/exec_spec.rb b/spec/commands/exec_spec.rb index 7503b9db5f..c3274e385a 100644 --- a/spec/commands/exec_spec.rb +++ b/spec/commands/exec_spec.rb @@ -797,7 +797,7 @@ __FILE__: #{path.to_s.inspect} bundle :install, :system_bundler => true, :path => "vendor/bundler" end - it "overrides disable_shared_gems so bundler can be found" do + it "overrides disable_shared_gems so bundler can be found", :rubygems => ">= 2.6.2" do skip "bundler 1.16.x is not support with Ruby 2.6 on Travis CI" if RUBY_VERSION >= "2.6" system_gems :bundler diff --git a/spec/commands/pristine_spec.rb b/spec/commands/pristine_spec.rb index a868465c03..d01d550ed3 100644 --- a/spec/commands/pristine_spec.rb +++ b/spec/commands/pristine_spec.rb @@ -42,7 +42,7 @@ RSpec.describe "bundle pristine", :ruby_repo do expect(changes_txt).to_not be_file end - it "does not delete the bundler gem" do + it "does not delete the bundler gem", :rubygems => ">= 2.6.2" do ENV["BUNDLER_SPEC_KEEP_DEFAULT_BUNDLER_GEM"] = "true" system_gems :bundler bundle! "install" |