From: Marc-Andre Lafortune Date: 2009-10-26T20:03:22+09:00 Subject: [ruby-core:26316] [Bug #2276] Array#<=> should not raise when comparison fails Bug #2276: Array#<=> should not raise when comparison fails http://redmine.ruby-lang.org/issues/show/2276 Author: Marc-Andre Lafortune Status: Closed, Priority: Normal Category: core, Target version: 1.9.2 ruby -v: ruby 1.9.2dev (2009-10-25 trunk 25457) [x86_64-darwin10.0.0] Since the addition of Object#<=>, the only comparison that raised an error was Array#<=>(not_an_array). Array#<=>(obj) now returns nil if obj is not array-like. Maybe this should also be applied in the 1.8 line? Note: neither test-all nor rubyspec were testing for this. ---------------------------------------- http://redmine.ruby-lang.org