1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

don't call gem method if Test::Unit is defined

ruby's test-all may define 'gem' method somewhere,
and it cause test failure.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43772 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-11-22 02:06:23 +00:00
parent a6ca9f9fce
commit 2cf7281c44

View file

@ -1,7 +1,7 @@
require 'rubygems'
begin
gem 'minitest', '~> 4.0'
gem 'minitest', '~> 4.0' unless defined?(Test::Unit)
rescue NoMethodError
# for ruby tests
end