From: "zzak (Zachary Scott)" Date: 2013-10-02T21:18:49+09:00 Subject: [ruby-core:57597] [ruby-trunk - Bug #8975] Confusing code sample for assert_send Issue #8975 has been updated by zzak (Zachary Scott). Thanks for the report Andrew! I'm really glad we got a doc bug reported for TestUnit, this confirms my suspicion that people are still using TU for legacy apps and still need accurate documentation. I will have to reconsider how we document TU.. ---------------------------------------- Bug #8975: Confusing code sample for assert_send https://bugs.ruby-lang.org/issues/8975#change-42211 Author: agrimm (Andrew Grimm) Status: Open Priority: Normal Assignee: zzak (Zachary Scott) Category: doc Target version: ruby -v: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux] Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN Test::Unit::Assertsions#assert_send has the code sample assert_send([[1, 2], :member?, 1]) # -> pass assert_send([[1, 2], :member?, 4]) # -> fail Having an array within an array is somewhat confusing. When I first read it, I ignored the extra square brackets. A less confusing example would be assert_send(["Hello world", :include?, "Hello"]) # -> pass assert_send(["Hello world", :include?, "Goodbye"]) # -> fail -- http://bugs.ruby-lang.org/