diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 08:36:00 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-02 08:36:00 +0000 |
commit | 14e196925d94b6216474abdebe8ff2d37010a062 (patch) | |
tree | fe8ba133c2108b56e48f02a0844b8d2b554af18d /test | |
parent | 7495b2d2d65c34c8404feb0dade32efb3ac1f623 (diff) | |
download | ruby-14e196925d94b6216474abdebe8ff2d37010a062.tar.gz |
Added test for default gems validation.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63555 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_default_gems.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/ruby/test_default_gems.rb b/test/ruby/test_default_gems.rb new file mode 100644 index 0000000000..fe91ceb84c --- /dev/null +++ b/test/ruby/test_default_gems.rb @@ -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 |