Bug #771

test/unit wrapper breaks compatibility

Added by Jeremy Kemper about 3 years ago. Updated 9 months ago.

[ruby-core:20014]
Status:Closed Start date:11/21/2008
Priority:High Due date:
Assignee: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 Akira Tanaka about 3 years 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

Updated by Koichi Sasada about 3 years ago

  • Assignee set to Yuki Sonoda

Updated by Jeremy Kemper about 3 years ago

With this change, Rails tests are 1.9 compatible!

Updated by Yuki Sonoda about 3 years ago

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

Updated by Akira Tanaka about 3 years ago

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

Also available in: Atom PDF