I get this super weird and very inconsistent YAML error while running my tests:
Minitest::UnexpectedError: ActiveRecord::Fixture::FormatError: a YAML error occurred parsing <fixture-file>. Please note that YAML must be consistently indented using spaces. Tabs are not allowed. Please have a look at http://www.yaml.org/faq.html The exact error was: Psych::SyntaxError: (<unknown>): did not find expected key while parsing a block mapping at line 203 column 3
I’ve checked and rechecked the fact that there are no tab characters. This only seems to happen when I’m using ERB to generate a vast number of fixtures.
Usually just running the tests again works but every now and again the error crops up.
Thanks for taking the initiative of A May of WTFs. It’s really amazing