mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
16 lines
457 B
Ruby
16 lines
457 B
Ruby
# frozen_string_literal: false
|
|
require 'rubygems'
|
|
|
|
class TestDefaultGems < Test::Unit::TestCase
|
|
|
|
def test_validate_gemspec
|
|
skip "git not found" unless system("git", "--version", %i[out err]=>IO::NULL)
|
|
srcdir = File.expand_path('../../..', __FILE__)
|
|
Dir.glob("#{srcdir}/{lib,ext}/**/*.gemspec").map do |src|
|
|
assert_nothing_raised do
|
|
raise("invalid spec in #{src}") unless Gem::Specification.load(src)
|
|
end
|
|
end
|
|
end
|
|
|
|
end
|