summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2016-08-05 19:28:12 -0500
committerSamuel Giddins <segiddins@segiddins.me>2016-08-05 19:28:12 -0500
commit65d314bb9bc34677fed24ec750087ee0309f7431 (patch)
tree676013adb44afe0a0cdd85362d28211b03dd0445
parent35e0cfbcb57d583d93789b7b7abc0fa62ccb95a3 (diff)
downloadbundler-65d314bb9bc34677fed24ec750087ee0309f7431.tar.gz
Allow updating a git repo at a custom path
-rw-r--r--spec/support/builders.rb3
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)