Because <=> is not defined on TrueClass in 1.8.7. This leads to another failing test if the tested collection has more than 1 entry. So I changed the block to return 0 for these methods.