Project

General

Profile

Actions

Bug #1085

closed

Got the error message, after run 'gem install --test'.

Added by kouji (Kouji Takao) almost 16 years ago. Updated over 13 years ago.

Status:
Closed
Target version:
ruby -v:
1.9.1p5000 (2009-01-31 trunk 21924) [i386-darwin9.6.0]
Backport:
[ruby-core:21714]

Description

=begin
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 #MiniTest::Unit:0x77d1fc

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
    =end
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0