From 2ba607963bb53e785adeefb4c414529b6a0cbb5d Mon Sep 17 00:00:00 2001 From: JuanitoFatas Date: Thu, 15 Sep 2016 17:13:54 +0800 Subject: Add specs to ensure parseable doesn't break global and local set --- spec/commands/config_spec.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'spec/commands') diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb index 9ab36176f0..162ec16f18 100644 --- a/spec/commands/config_spec.rb +++ b/spec/commands/config_spec.rb @@ -102,6 +102,12 @@ describe ".bundle/config" do run "puts Bundler.settings['local.foo']" expect(out).to eq(File.expand_path(Dir.pwd + "/..")) end + + it "works with parseable option" do + bundle "config --global parseable value" + run "puts Bundler.settings['parseable']" + expect(out).to eq("value") + end end describe "local" do @@ -147,6 +153,12 @@ describe ".bundle/config" do run "puts Bundler.settings['local.foo']" expect(out).to eq(File.expand_path(Dir.pwd + "/..")) end + + it "works with parseable option" do + bundle "config --local parseable value" + run "puts Bundler.settings['parseable']" + expect(out).to eq("value") + end end describe "env" do -- cgit v1.2.1