Project

General

Profile

ActionsLike0

Bug #1085

closed

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

Added by kouji (Kouji Takao) about 16 years ago. Updated almost 14 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
#1

Updated by ko1 (Koichi Sasada) about 16 years ago

  • Assignee set to zenspider (Ryan Davis)
  • ruby -v set to 1.9.1p5000 (2009-01-31 trunk 21924) [i386-darwin9.6.0]
#3

Updated by naruse (Yui NARUSE) over 15 years ago

  • Category set to lib
  • Status changed from Open to Assigned
  • Assignee changed from zenspider (Ryan Davis) to drbrain (Eric Hodel)
  • Priority changed from 3 to 6
  • Target version set to 1.9.2
#4

Updated by drbrain (Eric Hodel) about 15 years ago

  • Assignee changed from drbrain (Eric Hodel) to zenspider (Ryan Davis)
#10

Updated by mame (Yusuke Endoh) almost 15 years ago

  • Assignee changed from zenspider (Ryan Davis) to drbrain (Eric Hodel)
#15

Updated by mame (Yusuke Endoh) almost 15 years ago

  • Status changed from Assigned to Closed
  • % Done changed from 0 to 100
ActionsLike0

Also available in: Atom PDF