diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-15 16:48:42 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-08-16 08:43:50 +0200 |
commit | d35e31d2e067f1d044550705699a979557683a99 (patch) | |
tree | c6a13f91b0d992dd2b18d010abe26f1d5bd1454a /spec/support/path.rb | |
parent | 7844096af05b616d7502e354baf165c1e4edccce (diff) | |
download | bundler-d35e31d2e067f1d044550705699a979557683a99.tar.gz |
Extract a `tracked_files` path helper
Diffstat (limited to 'spec/support/path.rb')
-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 133d86e722..70ce645c0a 100644 --- a/spec/support/path.rb +++ b/spec/support/path.rb @@ -25,6 +25,10 @@ module Spec @spec_dir ||= root.join(ruby_core? ? "spec/bundler" : "spec") end + def tracked_files + @tracked_files ||= ruby_core? ? `git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler` : `git ls-files -z` + end + def tmp(*path) root.join("tmp", *path) end |