1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby/test_default_gems.rb
hsbt 46ec01cb3c Fixed wrong variable name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-06-02 13:55:54 +00:00

15 lines
375 B
Ruby

# frozen_string_literal: false
require 'rubygems'
class TestDefaultGems < Test::Unit::TestCase
def test_validate_gemspec
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