summaryrefslogtreecommitdiff
path: root/spec/commands/show_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/commands/show_spec.rb')
-rw-r--r--spec/commands/show_spec.rb12
1 files changed, 8 insertions, 4 deletions
diff --git a/spec/commands/show_spec.rb b/spec/commands/show_spec.rb
index 6634a3f7ed..8fb6631f82 100644
--- a/spec/commands/show_spec.rb
+++ b/spec/commands/show_spec.rb
@@ -30,7 +30,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
expect(out).to eq(default_bundle_path("gems", "rails-2.3.2").to_s)
end
- it "prints deprecation", :bundler => "2" do
+ it "prints deprecation" do
bundle "show rails"
expect(err).to eq("[DEPRECATED] use `bundle info rails` instead of `bundle show rails`")
end
@@ -40,7 +40,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
expect(out).to eq(default_bundle_path("gems", "rails-2.3.2").to_s)
end
- it "prints deprecation when called with a gem and the --paths option", :bundler => "2" do
+ it "prints deprecation when called with a gem and the --paths option" do
bundle "show rails --paths"
expect(err).to eq("[DEPRECATED] use `bundle info rails --path` instead of `bundle show rails --paths`")
end
@@ -59,7 +59,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
expect(out).to eq(root.to_s)
end
- it "prints deprecation when called with bundler", :bundler => "2" do
+ it "prints deprecation when called with bundler" do
bundle "show bundler"
expect(err).to eq("[DEPRECATED] use `bundle info bundler` instead of `bundle show bundler`")
end
@@ -79,7 +79,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
expect(gem_list).to eq(gem_list.sort)
end
- it "prints a deprecation when called with the --paths option", :bundler => 2 do
+ it "prints a deprecation when called with the --paths option" do
bundle "show --paths"
expect(err).to eq("[DEPRECATED] use `bundle list` instead of `bundle show --paths`")
@@ -226,3 +226,7 @@ RSpec.describe "bundle show", :bundler => "< 3" do
end
end
end
+
+RSpec.describe "bundle show", :bundler => "3" do
+ pending "shows a friendly error about the command removal"
+end