[LRUG] Test does not load many to many fixture

Tom Stuart tom at experthuman.com
Wed Feb 10 09:10:53 PST 2010


On 10 Feb 2010, at 17:07, Riccardo Tacconi wrote:
> Actually it is not working for me:
> role_id 	        user_id
> 135138679 	3001
> 
> That 135138679 id corresponds to any role_id in roles.

For this to work you have to let Rails generate the primary key for your fixtures, i.e. don't provide any ids in your roles.yml.

But, as others have said, your time would be better spent migrating away from fixtures entirely rather than investing any more in getting them to work.

Cheers,
-Tom


More information about the Chat mailing list