summaryrefslogtreecommitdiff
path: root/test/testunit
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-16 12:36:49 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-02-16 12:36:49 +0000
commit353cd251706d07ae4ffd66994a72acae06e98057 (patch)
tree497a34285070987477c8107f0295fc0936f81af2 /test/testunit
parentb13c74bf82d7d919de5cc85cc2b1992b128ba559 (diff)
* object.c (rb_obj_ivar_set/get/defined): fix to check :@_v/C id.
* test/testunit/test_testcase.rb: fix to use instance_variable_get() to access @_result. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/testunit')
-rw-r--r--test/testunit/test_testcase.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/testunit/test_testcase.rb b/test/testunit/test_testcase.rb
index 2934a92..4eaac2f 100644
--- a/test/testunit/test_testcase.rb
+++ b/test/testunit/test_testcase.rb
@@ -265,7 +265,7 @@ module Test
end
def check(message, passed)
- @_result.add_assertion
+ instance_variable_get(:@_result/TestCase).add_assertion
if ! passed
raise AssertionFailedError.new(message)
end