From 95e55e9ae4a446a62db21e2ea91c54d20fbdcbdc Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 28 Feb 2024 11:08:49 +0900 Subject: [PATCH] Also ignore git ls-files command with IO.popen style for tmpdir.gemspec and tempfile.gemspec --- test/ruby/test_default_gems.rb | 1 + 1 file changed, 1 insertion(+) 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