summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-28 11:08:49 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-28 11:08:49 +0900
commit95e55e9ae4a446a62db21e2ea91c54d20fbdcbdc (patch)
tree6ba026e1a247a58f57705781e0e17ea496c9f8fb /test
parent3668118572c8d1f8faa95034883b52aa9d05c5c4 (diff)
Also ignore git ls-files command with IO.popen style for tmpdir.gemspec and tempfile.gemspec
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_default_gems.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_default_gems.rb b/test/ruby/test_default_gems.rb
index d8e8226253..935a310438 100644
--- a/test/ruby/test_default_gems.rb
+++ b/test/ruby/test_default_gems.rb
@@ -8,6 +8,7 @@ class TestDefaultGems < Test::Unit::TestCase
# - `git ls-files` is useless under ruby's repository
# - `2>/dev/null` works only on Unix-like platforms
code.gsub!(/`git.*?`/, '""')
+ code.gsub!(/\[git.*?\]/, '[]')
eval(code, binding, file)
end