summaryrefslogtreecommitdiff
path: root/lib/test/unit/assertions.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/test/unit/assertions.rb')
-rw-r--r--lib/test/unit/assertions.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 42f7379526..9730fe2670 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -156,8 +156,8 @@ EOT
end
# Compares the two objects based on the passed
- # operator. Passes if object1.send(operator, object2) is
- # true.
+ # operator. Passes if object1.__send__(operator, object2)
+ # is true.
public
def assert_operator(object1, operator, object2, message="")
_wrap_assertion do
@@ -168,7 +168,7 @@ EOT
?
<?>.
EOT
- assert_block(full_message) { object1.send(operator, object2) }
+ assert_block(full_message) { object1.__send__(operator, object2) }
end
end
@@ -236,7 +236,7 @@ EOT
end
UncaughtThrow = {NameError => /^uncaught throw \`(.+)\'$/,
- ThreadError => /^uncaught throw \`(.+)\' in thread /}
+ ThreadError => /^uncaught throw \`(.+)\' in thread /} #`
# Passes if block throws symbol.
public