diff options
author | Colby Swandale <colby@taplaboratories.com> | 2017-04-05 22:18:50 +1000 |
---|---|---|
committer | Colby Swandale <colby@taplaboratories.com> | 2017-04-05 22:18:50 +1000 |
commit | b167787a5bb56fba9b9410b175ea3a6d8f51756c (patch) | |
tree | 82b6f3e31742538e3661a4c304cf35e7f66fe2ce /spec/commands | |
parent | de494369df4e7370fd477f5ff246f5133d319a73 (diff) | |
download | bundler-b167787a5bb56fba9b9410b175ea3a6d8f51756c.tar.gz |
update config output parseable format and specs
Diffstat (limited to 'spec/commands')
-rw-r--r-- | spec/commands/config_spec.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb index f677c1fc36..0ecf25d49e 100644 --- a/spec/commands/config_spec.rb +++ b/spec/commands/config_spec.rb @@ -23,7 +23,23 @@ RSpec.describe ".bundle/config" do context "given --parseable flag" do it "prints a minimal report of local and user configuration" do bundle "config --parseable" - expect(out).to include("foo=bar") + expect(out).to include("foo: local= global=bar env=") + end + + context "with global config" do + it "prints config assigned to local scope" do + bundle "config --local foo2 bar" + bundle "config --parseable" + expect(out).to include("foo2: local=bar global= env=") + end + end + + context "with env overwrite" do + it "prints config with env" do + bundle "config foo bar" + bundle "config --parseable", :env => { "BUNDLE_FOO" => "bar2" } + expect(out).to include("foo: local= global=bar env=bar2") + end end end end |