diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-23 23:58:40 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2024-03-23 23:58:40 +0900 |
| commit | 5a77397489268f27a5d803441d723736a12f59fc (patch) | |
| tree | 247f0779c461171f7fdaf565cf4ab3575f168cc3 /test/ruby | |
| parent | c505bb0ca0fd61c7ae931d26451f11122a2644e9 (diff) | |
Ignore method chains succeeding `git ls-files`
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_default_gems.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_default_gems.rb b/test/ruby/test_default_gems.rb index b9de33cc78..b82e304cbd 100644 --- a/test/ruby/test_default_gems.rb +++ b/test/ruby/test_default_gems.rb @@ -9,7 +9,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[^\`]*`|%x\[git[^\]]*\])\.split\([^\)]*\)/m, '[]') - code.gsub!(/IO\.popen\(.*git.*?\)/, '[].each') + code.gsub!(/IO\.popen\(.*git.*?\)/, '[] || itself') eval(code, binding, file) end |
