summaryrefslogtreecommitdiff
path: root/test/testunit/test_testcase.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/testunit/test_testcase.rb')
-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 4eaac2f..2934a92 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