Use dummy command for IO.popen

This commit is contained in:
Hiroshi SHIBATA 2024-02-28 11:14:44 +09:00
parent e8e2415bb3
commit 47b46fd98c
No known key found for this signature in database
GPG Key ID: F9CF13417264FAC2

View File

@ -8,7 +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.*?\]/, '[]')
code.gsub!(/\[git.*?\]/, '[echo]')
eval(code, binding, file)
end