[LRUG] Test does not load many to many fixture
Riccardo Tacconi
rtacconi at gmail.com
Wed Feb 10 08:08:10 PST 2010
Yes it works :-)
I had a look at factory_girl and I will try it... in the next project.
On Wed, Feb 10, 2010 at 3:43 PM, Anthony Green <Anthony.Green at bbc.co.uk> wrote:
> As you say it appears Rails opinion is that you're not supposed to use
> roles_user.yml
>
> but use Foxy Fixtures instead
>
> sally:
> roles: admin, editor
>
> http://ryandaigle.com/articles/2007/10/26/what-s-new-in-edge-rails-fixtures-
> just-got-a-whole-lot-easier
>
>> Rails > 2.2 does not load HABTM fixtures. They can specify as:
>>
>> sally:
>> roles: admin, editor
>> ...
>>
>> fred:
>> roles: basic
>> ...
>>
>> However I was able to force roles_users.yml with:
>>
>> ENV['FIXTURES'] ||= 'roles_users'
>
> --
> Anthony Green
>
>
> http://www.bbc.co.uk/
> This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated.
> If you have received it in error, please delete it from your system.
> Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately.
> Please note that the BBC monitors e-mails sent or received.
> Further communication will signify your consent to this.
>
> _______________________________________________
> Chat mailing list
> Chat at lists.lrug.org
> http://lists.lrug.org/listinfo.cgi/chat-lrug.org
>
--
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
More information about the Chat
mailing list