summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-28 11:14:44 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2024-02-28 11:14:48 +0900
commit47b46fd98c71732400d53805f63ab988b28fa651 (patch)
treec649548130952a96dc6ca4478c3197156426cc20 /test
parente8e2415bb32c7e9f2a55d218a97cb5f9474b2898 (diff)
Use dummy command for IO.popen
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_default_gems.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_default_gems.rb b/test/ruby/test_default_gems.rb
index 935a310438..71371b46c3 100644
--- a/test/ruby/test_default_gems.rb
+++ b/test/ruby/test_default_gems.rb
@@ -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