diff options
-rw-r--r-- | spec/commands/binstubs_spec.rb | 3 |
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 |