From cf5dd0e6a35ddfc554f705099dfba207c3b54583 Mon Sep 17 00:00:00 2001 From: SHIBATA Hiroshi Date: Tue, 13 Feb 2018 14:25:26 +0900 Subject: Comment for fake version of binstub examples --- spec/commands/binstubs_spec.rb | 3 +++ 1 file changed, 3 insertions(+) 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 " 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 -- cgit v1.2.1