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