COMMIT Add a spec for detect/find with failover proc on explicitly empty array. http://github.com/rubyspec/rubyspec/commit/1e4d92688d929ee34ece2cb5886df4a1d712797f =================================================================== +++ 20100904T040319 @@ 13330 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - raises a LocalJumpError if no block given /var/lib/chkbuild/tmp/build/ruby-1.8.6-pth-o3//rubyspec/core/enumerable/drop_spec.rb @@ 13378 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - raises a LocalJumpError if no block given /var/lib/chkbuild/tmp/build/ruby-1.8.6-pth-o3//rubyspec/core/enumerable/first_spec.rb @@ 27719 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - raises a LocalJumpError if no block given @@ 27855 @@ - returns the value of the ifnone proc if the block is false - doesn't call the ifnone proc if an element is found - calls the ifnone proc only once when the block is false +- calls the ifnone proc when there are no elements - raises a LocalJumpError if no block given