From 25423f0918eb31477a9ef72a4c14b0c5c5b78bc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= Date: Mon, 6 Dec 2021 01:42:43 +0100 Subject: [rubygems/rubygems] Add --version parameter to bundle info command. https://github.com/rubygems/rubygems/commit/7d9fdd908d --- spec/bundler/commands/info_spec.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'spec') diff --git a/spec/bundler/commands/info_spec.rb b/spec/bundler/commands/info_spec.rb index dbfb800c4c..7f618b5f6c 100644 --- a/spec/bundler/commands/info_spec.rb +++ b/spec/bundler/commands/info_spec.rb @@ -50,6 +50,11 @@ RSpec.describe "bundle info" do expect(out).to eq(root.to_s) end + it "prints gem version if exists in bundle" do + bundle "info rails --version" + expect(out).to eq("2.3.2") + end + it "doesn't claim that bundler has been deleted, even if using a custom path without bundler there" do bundle "config set --local path vendor/bundle" bundle "install" -- cgit v1.2.3