ruby-changes:31518
From: zzak <ko1@a...>
Date: Sat, 9 Nov 2013 14:12:52 +0900 (JST)
Subject: [ruby-changes:31518] zzak:r43597 (trunk): * lib/test/unit/assertions.rb: [DOC] better example for assert_send()
zzak 2013-11-09 14:12:45 +0900 (Sat, 09 Nov 2013) New Revision: 43597 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43597 Log: * lib/test/unit/assertions.rb: [DOC] better example for assert_send() Patch by Andrew Grimm [Bug #8975] Modified files: trunk/ChangeLog trunk/lib/test/unit/assertions.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 43596) +++ ChangeLog (revision 43597) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Sat Nov 9 13:59:58 2013 Zachary Scott <e@z...> + + * 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@r...> * insns.def: unify ic_constant_serial and ic_class_serial into one field Index: lib/test/unit/assertions.rb =================================================================== --- lib/test/unit/assertions.rb (revision 43596) +++ lib/test/unit/assertions.rb (revision 43597) @@ -328,8 +328,8 @@ EOT https://github.com/ruby/ruby/blob/trunk/lib/test/unit/assertions.rb#L328 # * 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) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/