summaryrefslogtreecommitdiffstats
path: root/lib/rubygems/validator.rb
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 08:39:12 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-20 08:39:12 +0000
commitdcf06bd39ea72acbc312758e2df764c4b982b40c (patch)
treef6d367888b42848fd6a660fad57fa2020e38c097 /lib/rubygems/validator.rb
parenteb954f44e53ba18225a0e906891c47373ce0d651 (diff)
downloadruby-dcf06bd39ea72acbc312758e2df764c4b982b40c.tar.gz
ruby-dcf06bd39ea72acbc312758e2df764c4b982b40c.tar.xz
ruby-dcf06bd39ea72acbc312758e2df764c4b982b40c.zip
Import RubyGems 1.0.0, r1575
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/validator.rb')
-rwxr-xr-xlib/rubygems/validator.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rubygems/validator.rb b/lib/rubygems/validator.rb
index 8130f49bc..41c457c3c 100755
--- a/lib/rubygems/validator.rb
+++ b/lib/rubygems/validator.rb
@@ -157,8 +157,9 @@ module Gem
# XXX: why do we need this gem_spec when we've already got 'spec'?
test_files = gem_spec.test_files
if test_files.empty?
- say "There are no unit tests to run for #{gem_spec.name}-#{gem_spec.version}"
- return
+ say "There are no unit tests to run for #{gem_spec.full_name}"
+ require 'test/unit/ui/console/testrunner'
+ return Test::Unit::TestResult.new
end
gem gem_spec.name, "= #{gem_spec.version.version}"
test_files.each do |f| require f end