[前][次][番号順一覧][スレッド一覧]

ruby-changes:33605

From: naruse <ko1@a...>
Date: Wed, 23 Apr 2014 13:32:03 +0900 (JST)
Subject: [ruby-changes:33605] naruse:r45686 (trunk): fix to rescue when test-all runs without installation

naruse	2014-04-23 13:31:56 +0900 (Wed, 23 Apr 2014)

  New Revision: 45686

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=45686

  Log:
    fix to rescue when test-all runs without installation
    
    https://api.travis-ci.org/jobs/23564212/log.txt?deansi=true

  Modified files:
    trunk/lib/test/unit.rb
Index: lib/test/unit.rb
===================================================================
--- lib/test/unit.rb	(revision 45685)
+++ lib/test/unit.rb	(revision 45686)
@@ -1,4 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/lib/test/unit.rb#L1
-gem 'minitest', '< 5.0.0' if defined? Gem
+begin
+  gem 'minitest', '< 5.0.0' if defined? Gem
+rescue Gem::LoadError
+end
 require 'minitest/unit'
 require 'test/unit/assertions'
 require 'test/unit/testcase'

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]