Bug #771 [ruby-core:20014]

test/unit wrapper breaks compatibility

Added by Jeremy Kemper 225 days ago. Updated 205 days ago.

Status :Closed Start :11/21/2008
Priority :High Due date :
Assigned to :Akira Tanaka % Done :

100%

Category :lib
Target version :1.9.1 Release Candidate
ruby -v :


Description

The test/unit wrapper breaks libraries that add behavior to Test::Unit::TestCase.

You can't require 'test/unit/testcase' because it doesn't exist. But you can't require 'test/unit' because it autoruns tests.

The patch brings back test/unit/testcase.rb and test/unit/assertions.rb to restore compatibility.

testcase_compatibility.patch (10.9 KB) Jeremy Kemper, 11/21/2008 09:33 AM

Associated revisions

Revision 20632
Added by akr 205 days ago

  • lib/test/unit/assertions.rb: extracted from lib/test/unit.rb. lib/test/unit/testcase.rb: ditto. at asakusa.rb. [ruby-core:20014]

History

11/29/2008 04:41 PM - Koichi Sasada

  • Assigned to set to Yuki Sonoda

12/11/2008 10:35 AM - Jeremy Kemper

With this change, Rails tests are 1.9 compatible!

12/11/2008 11:06 AM - Yuki Sonoda

  • Assigned to changed from Yuki Sonoda to Akira Tanaka
  • Priority changed from Normal to High

12/11/2008 07:47 PM - Akira Tanaka

  • Status changed from Open to Closed
  • % Done changed from 0 to 100
Applied in changeset r20632.

Also available in: Atom PDF