From 6c1a51dae82cf2bccdddd0376d57ba7574c01a18 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Tue, 19 May 2020 00:58:19 +0900 Subject: [PATCH] Skip some tests if extracted from tarball (again) Fix up previous commit ref 9aa75795f9f438d5c874d8e418c3c7cdd63024fa, 38002a8adbd98266426940d829429a30af0622a4, and 0e60b59d5884edb8f9aea023efd9b24f1ff02049 --- spec/bundler/support/helpers.rb | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb index b532fdc462..50cf4438d9 100644 --- a/spec/bundler/support/helpers.rb +++ b/spec/bundler/support/helpers.rb @@ -576,5 +576,11 @@ module Spec end port end + + private + + def git_root_dir? + root.to_s == `git rev-parse --show-toplevel`.chomp + end end end