summaryrefslogtreecommitdiff
path: root/spec/bundler/support/path.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-08-15 16:59:08 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-08-17 17:08:50 +0900
commit6a299906b4bebe1c86bc50a565f47348e735cb8e (patch)
treeb1781ecdf119fd8ba2c5c8d1f8c8314aed26dea1 /spec/bundler/support/path.rb
parent19dabfbe574f9a8298054eb417d299ec5fc18412 (diff)
[bundler/bundler] Extract a `lib_tracked_files` path helper
https://github.com/bundler/bundler/commit/028dc46f5a
Diffstat (limited to 'spec/bundler/support/path.rb')
-rw-r--r--spec/bundler/support/path.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb
index 70ce645c0a..3b18cd2da8 100644
--- a/spec/bundler/support/path.rb
+++ b/spec/bundler/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