Where does the last `"...\n"` come from? I can't really see the original intent of the code under test, and this bit being missing on *most* of the ruby versions seems to be the crux of the build problem.