[LRUG] Test does not load many to many fixture

Riccardo Tacconi rtacconi at gmail.com
Wed Feb 10 03:30:12 PST 2010


Hi again,

I am using Test to test my application. I have some fixtures: users.yml,
roles.yml, roles_users.yml. The users and roles are loaded but not the many
to many table roles_users so the users are not related to any role. With
Rails console in development everything is ok, in test any user is not
connected to any role. I can see the users and roles in the test database
but roles_users is empty

Do I have to specify somewhere how to load this fixture?

-- 
Riccardo Tacconi
Web developer at Wolseley UK
VIRTUELOGIC LIMITED (Director)

http://www.linkedin.com/in/riccardotacconi
http://riccardotacconi.blogspot.com/
http://twitter.com/rtacconi
Linux user: #400461
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lrug.org/pipermail/chat-lrug.org/attachments/20100210/7fe56be3/attachment-0003.html>


More information about the Chat mailing list