# Odd fixtures behaviour

**URL:** <https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988>\
**Category:** Rails\
**Created:** [April 27, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988 "2008-04-27T18:10:42Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 27, 2008, 6:10pm UTC](https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988/1 "2008-04-27T18:10:42Z")

</div>

This is Rails 2.0.2

I have two yaml fixture files, both loading into ARs with acts\_as\_tree,  
so they both have the !!omap directive set.

One, categories.yml, loads just fine. The other goes very weird, somehow  
fixtures.rb opens the file, reads “name: All” from the first record, and  
then tries to open a file called “All”, which then fails miserably on  
line .

I can’t see what’s wrong with the file, and it’s almost exactly the same  
as the one which loads without a problem.

Any ideas anyone.

---

<div class="post-metadata">

**Author:** ![captaffy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f04885/32.png) [@captaffy](https://www.ruby-forum.com/u/captaffy)\
**Post date:** [April 27, 2008, 6:13pm UTC](https://www.ruby-forum.com/t/odd-fixtures-behaviour/135988/2 "2008-04-27T18:13:57Z")

</div>

John S. wrote:

> This is Rails 2.0.2
> 
> I have two yaml fixture files, both loading into ARs with acts\_as\_tree,  
> so they both have the !!omap directive set.
> 
> One, categories.yml, loads just fine. The other goes very weird, somehow  
> fixtures.rb opens the file, reads “name: All” from the first record, and  
> then tries to open a file called “All”, which then fails miserably on  
> line .
> 
> I can’t see what’s wrong with the file, and it’s almost exactly the same  
> as the one which loads without a problem.
> 
> Any ideas anyone.

Whoops this got sent too early. I’d edited the yaml file to read Name:  
World rather than name: All. So now it’s trying to open a file called  
“World” on line 814 in fixtures.rb
