Add spec for reverse word in ruby.