diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2016-08-05 19:28:12 -0500 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2016-08-05 19:28:12 -0500 |
commit | 65d314bb9bc34677fed24ec750087ee0309f7431 (patch) | |
tree | 676013adb44afe0a0cdd85362d28211b03dd0445 | |
parent | 35e0cfbcb57d583d93789b7b7abc0fa62ccb95a3 (diff) | |
download | bundler-65d314bb9bc34677fed24ec750087ee0309f7431.tar.gz |
Allow updating a git repo at a custom path
-rw-r--r-- | spec/support/builders.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/support/builders.rb b/spec/support/builders.rb index 71e76a8c20..337234f14a 100644 --- a/spec/support/builders.rb +++ b/spec/support/builders.rb @@ -422,8 +422,9 @@ module Spec end def update_git(name, *args, &block) + opts = args.last.is_a?(Hash) ? args.last : {} spec = build_with(GitUpdater, name, args, &block) - GitReader.new lib_path(spec.full_name) + GitReader.new(opts[:path] || lib_path(spec.full_name)) end def build_plugin(name, *args, &blk) |