I’ve made a PR to have test fixture files ending in .yml.erb
get picked up by ActiveRecord.
My motivation behind this was that
- I was surprised when given that
.html.erb
/.js.erb
/.xml.erb
files are picked up insideapp/views
, myfoo.yml.erb
file wasn’t picked up insidetest/fixtures
- My text editor, Vim, didn’t apply the correct syntax highlighting for the ERB syntax unless the file extension ended in
.erb
However as Petrik de Heus pointed out, this adds more complexity. What should be the proper behaviour here?