summaryrefslogtreecommitdiff
path: root/spec/other
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-15 19:31:48 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2019-03-15 19:31:48 +0100
commit0a396b8f530bec57d19cad5202baa002d74d5e80 (patch)
tree28a2c4916feff2b48813aea51e422fd194bb8d0f /spec/other
parent1591215e636d68117c04158dfe8da81c8ef2b357 (diff)
downloadbundler-0a396b8f530bec57d19cad5202baa002d74d5e80.tar.gz
Fix deprecation version for `bundle config`
And add specs for it.
Diffstat (limited to 'spec/other')
-rw-r--r--spec/other/major_deprecation_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/other/major_deprecation_spec.rb b/spec/other/major_deprecation_spec.rb
index 3eeeb32b89..e330f6bb38 100644
--- a/spec/other/major_deprecation_spec.rb
+++ b/spec/other/major_deprecation_spec.rb
@@ -52,6 +52,20 @@ RSpec.describe "major deprecations" do
end
end
+ describe "bundle config" do
+ before do
+ bundle! "config"
+ end
+
+ it "does not warn when no options are given", :bundler => "< 2" do
+ expect(deprecations).to be_empty
+ end
+
+ it "warns when no options are given", :bundler => "2" do
+ expect(deprecations).to include("Using the `config` command without a subcommand [list, get, set, unset]")
+ end
+ end
+
describe "bundle update" do
before do
bundle! "install"