diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:59:08 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:50 +0200 |
commit | 028dc46f5ae617463013898a8155b2eeed2bd797 (patch) | |
tree | 9f71b081b44200b95e32c8484496110265e2086a /spec/support | |
parent | 314c64cd07ccc5541506923b1922097257b8d4c9 (diff) | |
download | bundler-028dc46f5ae617463013898a8155b2eeed2bd797.tar.gz |
Extract a `lib_tracked_files` path helper
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/path.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/support/path.rb b/spec/support/path.rb index 70ce645c0a..3b18cd2da8 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -29,6 +29,10 @@ module Spec @tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler` : `git ls-files -z` end + def lib_tracked_files + @lib_tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb` : `git ls-files -z -- lib` + end + def tmp(*path) root.join("tmp", *path) end |