[前][次][番号順一覧][スレッド一覧]

ruby-changes:61291

From: Kazuhiro <ko1@a...>
Date: Tue, 19 May 2020 00:59:02 +0900 (JST)
Subject: [ruby-changes:61291] 6c1a51dae8 (master): Skip some tests if extracted from tarball (again)

https://git.ruby-lang.org/ruby.git/commit/?id=6c1a51dae8

From 6c1a51dae82cf2bccdddd0376d57ba7574c01a18 Mon Sep 17 00:00:00 2001
From: Kazuhiro NISHIYAMA <zn@m...>
Date: Tue, 19 May 2020 00:58:19 +0900
Subject: Skip some tests if extracted from tarball (again)

Fix up previous commit

ref
9aa75795f9f438d5c874d8e418c3c7cdd63024fa,
38002a8adbd98266426940d829429a30af0622a4, and
0e60b59d5884edb8f9aea023efd9b24f1ff02049

diff --git a/spec/bundler/support/helpers.rb b/spec/bundler/support/helpers.rb
index b532fdc..50cf443 100644
--- a/spec/bundler/support/helpers.rb
+++ b/spec/bundler/support/helpers.rb
@@ -576,5 +576,11 @@ module Spec https://github.com/ruby/ruby/blob/trunk/spec/bundler/support/helpers.rb#L576
       end
       port
     end
+
+  private
+
+    def git_root_dir?
+      root.to_s == `git rev-parse --show-toplevel`.chomp
+    end
   end
 end
-- 
cgit v0.10.2


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]