describe String do
it "can determine the longest word in a string" do
"".longest_word_length.should eql(0)
"hello".longest_word_length.should eql(5)
"this is the longest word".longest_word_length.should eql(7)
"two words".longest_word_length.should eql(5)
"same size".longest_word_length.should eql(4)
end
end

Are there any little methods you have written that make you smile at their simplicity?