summaryrefslogtreecommitdiff
path: root/spec/support/builders.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/builders.rb')
-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)