summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Lance <stefan@lances.net>2015-07-09 12:34:14 -0500
committerStefan Lance <stefan@lances.net>2015-07-09 12:34:14 -0500
commit14c6d6fa90a3e5445880fdd4060d5008a7a3c92d (patch)
treebe60a2e94eec17097a74d6ab745c6c4d13d14ffd
parent2a2e79e8d01ca393a248314630e78001994392b5 (diff)
downloadbundler-14c6d6fa90a3e5445880fdd4060d5008a7a3c92d.tar.gz
Fix config spec
-rw-r--r--spec/commands/config_spec.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/spec/commands/config_spec.rb b/spec/commands/config_spec.rb
index 01d33ab10a..0dd9c67580 100644
--- a/spec/commands/config_spec.rb
+++ b/spec/commands/config_spec.rb
@@ -289,9 +289,14 @@ E
describe "setting `path` when `path.system` is already set" do
it "should print a warning and remove the `path.system` setting" do
bundle "config path.system true"
- # Note that if a path is used that does not include the installed gems,
- # we'll get an error when we pass _any_ command to `run` below.
- bundle "config path #{default_bundle_path}"
+ # Note that if we use `default_bundle_path` in place of
+ # `bundled_app(".bundle")` below, we add two `Bundler.ruby_scope`s to
+ # `Bundler.settings.path`, making it
+ # `bundler/tmp/bundled_app/.bundle/ruby/1.9.1/ruby/1.9.1` instead of
+ # `bundler/tmp/bundled_app/.bundle/ruby/1.9.1`.
+ # FIXME: Maybe we should ensure that installation paths cannot have
+ # two `Bundler.ruby_scope`s in them in `Settings#path`.
+ bundle "config path #{bundled_app(".bundle")}"
expect(out).to include("`path.system` is already configured")
run "puts Bundler.settings['path.system'] == nil"