summaryrefslogtreecommitdiff
path: root/spec/commands
diff options
context:
space:
mode:
authorJuanitoFatas <katehuang0320@gmail.com>2016-09-15 17:13:54 +0800
committerJuanitoFatas <katehuang0320@gmail.com>2016-09-15 17:13:54 +0800
commit2ba607963bb53e785adeefb4c414529b6a0cbb5d (patch)
tree779e2e6fff88ecab3d766109b163c94ae82c9683 /spec/commands
parent84d56f5bb2ff707f7c3b733f0d0d960031897c2d (diff)
downloadbundler-2ba607963bb53e785adeefb4c414529b6a0cbb5d.tar.gz
Add specs to ensure parseable doesn't break global and local set
Diffstat (limited to 'spec/commands')
-rw-r--r--spec/commands/config_spec.rb12
1 files changed, 12 insertions, 0 deletions
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