summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 05:12:45 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-09 05:12:45 +0000
commit4370f84653cb15f08e188c809c3846297a877f99 (patch)
treecbbbf392242248efae80f23b6c323a99d65435d7
parent1546fb6c005389b391bd1db54135357331a52f77 (diff)
* lib/test/unit/assertions.rb: [DOC] better example for assert_send()
Patch by Andrew Grimm [Bug #8975] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43597 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--lib/test/unit/assertions.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 8c55c0355c..854bc1ac26 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Nov 9 13:59:58 2013 Zachary Scott <e@zzak.io>
+
+ * lib/test/unit/assertions.rb: [DOC] better example for assert_send()
+ Patch by Andrew Grimm [Bug #8975]
+
Sat Nov 9 12:45:00 2013 Charlie Somerville <charliesome@ruby-lang.org>
* insns.def: unify ic_constant_serial and ic_class_serial into one field
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 3ed3dc339e..7da0c4e1eb 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -328,8 +328,8 @@ EOT
# * Arguments to the method
#
# Example:
- # assert_send([[1, 2], :member?, 1]) # -> pass
- # assert_send([[1, 2], :member?, 4]) # -> fail
+ # assert_send(["Hello world", :include?, "Hello"]) # -> pass
+ # assert_send(["Hello world", :include?, "Goodbye"]) # -> fail
def assert_send send_ary, m = nil
recv, msg, *args = send_ary
m = message(m) {