summaryrefslogtreecommitdiff
path: root/test/ruby/test_default_gems.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby/test_default_gems.rb')
-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 f29b17fd5b..3c4aea1561 100644
--- a/test/ruby/test_default_gems.rb
+++ b/test/ruby/test_default_gems.rb
@@ -4,7 +4,7 @@ require 'rubygems'
class TestDefaultGems < Test::Unit::TestCase
def test_validate_gemspec
- skip "git not found" unless system("git", "--version", %i[out err]=>IO::NULL)
+ skip "git not found" unless system("git", "rev-parse", %i[out err]=>IO::NULL)
srcdir = File.expand_path('../../..', __FILE__)
Dir.glob("#{srcdir}/{lib,ext}/**/*.gemspec").map do |src|
assert_nothing_raised do