under my circumstance. it should be like this (line 39)

because to_yaml output is started with

"---\n" instead of "--- \n"