From c5148e038316b3351b4c831773b83e08c11c20fb Mon Sep 17 00:00:00 2001 From: ko1 Date: Sat, 24 Feb 2007 01:49:43 +0000 Subject: [PATCH] * test/testunit/test_testcase.rb: catch up with current instance variable spec. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ test/testunit/test_testcase.rb | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 40a01792c6..f58fd7af76 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sat Feb 24 10:46:28 2007 Koichi Sasada + + * test/testunit/test_testcase.rb: catch up with current instance + variable spec. + Sat Feb 24 10:32:59 2007 Koichi Sasada * common.mk: change vm_macro.def rule. diff --git a/test/testunit/test_testcase.rb b/test/testunit/test_testcase.rb index 4eaac2f3f2..2934a92fef 100644 --- a/test/testunit/test_testcase.rb +++ b/test/testunit/test_testcase.rb @@ -265,7 +265,7 @@ module Test end def check(message, passed) - instance_variable_get(:@_result/TestCase).add_assertion + @_result.add_assertion if ! passed raise AssertionFailedError.new(message) end