summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2021-12-06 01:42:43 +0100
committergit <svn-admin@ruby-lang.org>2021-12-06 18:03:54 +0900
commit25423f0918eb31477a9ef72a4c14b0c5c5b78bc6 (patch)
treecb4bf1eae2f37a2756b0b493d8b4e3245ebb6cad /spec
parent5ce3272e513e0dafedcc40f121e2d71bef3a3688 (diff)
[rubygems/rubygems] Add --version parameter to bundle info command.
https://github.com/rubygems/rubygems/commit/7d9fdd908d
Diffstat (limited to 'spec')
-rw-r--r--spec/bundler/commands/info_spec.rb5
1 files changed, 5 insertions, 0 deletions
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"