summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-02-13 14:25:26 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-02-13 14:25:26 +0900
commitcf5dd0e6a35ddfc554f705099dfba207c3b54583 (patch)
tree91cbceceb8b6e7bcfe3a492e8a37e651e8e2364d
parent298c4b421d3c8006a254b9ba52241ef9f30fa853 (diff)
downloadbundler-fixed-default-gems-1-16-1.tar.gz
Comment for fake version of binstub examplesfixed-default-gems-1-16-1
-rw-r--r--spec/commands/binstubs_spec.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/commands/binstubs_spec.rb b/spec/commands/binstubs_spec.rb
index ed8ff9544d..ba50699ab1 100644
--- a/spec/commands/binstubs_spec.rb
+++ b/spec/commands/binstubs_spec.rb
@@ -100,6 +100,9 @@ RSpec.describe "bundle binstubs <gem>" do
bundle! "binstubs bundler rack prints_loaded_gems"
end
+ # When environment has a same version of bundler as default gems.
+ # `system_gems "bundler-x.y.z"` will detect system binstub.
+ # We need to avoid it by virtual version of bundler.
let(:system_bundler_version) { Gem::Version.new(Bundler::VERSION).bump.to_s }
context "when system bundler was used" do