summaryrefslogtreecommitdiff
path: root/spec/support
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-12 17:32:44 +0100
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2020-01-12 17:32:44 +0100
commit0465f07dfe7e49084ac47972aef79fc9d8ecd8e4 (patch)
tree276105670c5246f3b8e32a091e9284d7de36ec8b /spec/support
parent544e57cbe9bccd4f6e85c2ccea7e8d4a8c0f59fa (diff)
downloadbundler-0465f07dfe7e49084ac47972aef79fc9d8ecd8e4.tar.gz
Extract `man_tracked_files` path helper
Diffstat (limited to 'spec/support')
-rw-r--r--spec/support/path.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb
index 3de269d91a..a645aa6ffd 100644
--- a/spec/support/path.rb
+++ b/spec/support/path.rb
@@ -51,6 +51,12 @@ module Spec
@lib_tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib`
end
+ def man_tracked_files
+ skip "not in git working directory" unless git_root_dir?
+
+ @man_tracked_files ||= `git ls-files -z -- man`
+ end
+
def tmp(*path)
root.join("tmp", scope, *path)
end