From c896f71577e17e7b89ad39463b82d8936f000480 Mon Sep 17 00:00:00 2001 From: David Rodríguez Date: Thu, 15 Aug 2019 16:48:42 +0200 Subject: [bundler/bundler] Extract a `tracked_files` path helper https://github.com/bundler/bundler/commit/d35e31d2e0 --- spec/bundler/support/path.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'spec/bundler/support/path.rb') diff --git a/spec/bundler/support/path.rb b/spec/bundler/support/path.rb index 133d86e722..70ce645c0a 100644 --- a/spec/bundler/support/path.rb +++ b/spec/bundler/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 -- cgit v1.2.3