blob: 3c4aea156174eb253fa434ac919d66f8b476cf6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# frozen_string_literal: false
require 'rubygems'
class TestDefaultGems < Test::Unit::TestCase
def test_validate_gemspec
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
raise("invalid spec in #{src}") unless Gem::Specification.load(src)
end
end
end
end
|