Package: ruby-test-unit-context / 0.5.1-2

Metadata

Package Version Patches format
ruby-test-unit-context 0.5.1-2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
test unit 3.6.8 compat.patch | (download)

test/test/unit/context/hooks_test.rb | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 pre-create instance variables before run() so they survive test::unit >= 3.6.8 ivar cleanup
 The test suite in ruby-test-unit-context relies on instance variables set by
 setup/teardown hooks remaining accessible after the test case has finished
 running. Since test-unit 3.6.8 (commit roughly equivalent to upstream PR #235),
 Test::Unit::TestCase#run performs an explicit cleanup of instance variables
 that were not present at the beginning of the run method (for better GC
 behavior). This causes all the meta-test assertions in hooks_test.rb to see
 nil instead of the expected values.