From: Takao Kouji Date: 2009-02-01T22:26:06+09:00 Subject: [ruby-core:21714] [BUG:trunk] Got the error message, after run 'gem install --test'. Hi, Ryan. I use ruby 1.9.1p5000 (2009-01-31 trunk 21924) [i386-darwin9.6.0]. I got the error message, after I run 'gem install --test '. ERROR: While executing gem ... (NoMethodError) undefined method `passed?' for # The source of the problem is called MiniTest::Unit#passed? at lib/rubygems/commands/install_command.rb:136. The attached patch will fix the problem. Index: unit.rb =================================================================== --- unit.rb (revision 21924) +++ unit.rb (working copy) @@ -429,6 +429,10 @@ [@test_count, @assertion_count] end + def passed? + return (failures + errors) == 0 + end + class TestCase attr_reader :name