[rspec-users] Nested attributes in fixtures

David Chelimsky dchelimsky at gmail.com
Fri Oct 29 13:46:52 EDT 2010


On Oct 29, 2010, at 2:41 PM, Mack T. wrote:

> By "fixtures outside Rspec", I was referring to files in our db/fixtures 
> directory, which I assumed were fixtures.  On further investigation, I 
> found these files are actually being used by some custom 'seeding' code 
> a coworker of mine wrote.  The seeding is reading the fixtures and 
> creating AR objects, so they aren't actually fixtures.  This is how 
> accepts_nested_attributes is working - fixtures don't appear to support 
> that out of the box.
> 
> Also, when I said Rspec fixtures, I meant the files in spec/fixtures.
> 
> In short, never mind - this really has nothing to do with Rspec :)
> I appreciate the quick responses.

Glad you got it resolved :)

Cheers,
David


More information about the rspec-users mailing list