[LRUG] Test does not load many to many fixture

Anthony Green Anthony.Green at bbc.co.uk
Wed Feb 10 07:43:51 PST 2010


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.
					



More information about the Chat mailing list