mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Added test for default gems validation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7495b2d2d6
commit
14e196925d
1 changed files with 15 additions and 0 deletions
15
test/ruby/test_default_gems.rb
Normal file
15
test/ruby/test_default_gems.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
# 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 #{file}") unless Gem::Specification.load(src)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Reference in a new issue