doug
2006-Mar-09 09:40 UTC
[Rails] has_and_belongs_to_many -- how to create test fixtures?
Hallo -- can anyone offer me any pointers as to I should handle many-to-many relationships in Rails tests? Cheers, doug. -- Posted via http://www.ruby-forum.com/.
Jonathan Viney
2006-Mar-09 11:59 UTC
[Rails] Re: has_and_belongs_to_many -- how to create test fixtures?
Just name the fixture file after the join table, eg people_notes.yml if you are using has_and_belongs_to_many between the people and notes table. -Jonny doug wrote:> Hallo -- can anyone offer me any pointers as to I should handle > many-to-many relationships in Rails tests? > Cheers, > doug.-- Posted via http://www.ruby-forum.com/.
doug livesey
2006-Mar-09 12:01 UTC
[Rails] Re: has_and_belongs_to_many -- how to create test fixtures?
Jonathan Viney wrote:> Just name the fixture file after the join table, eg people_notes.yml if > you are using has_and_belongs_to_many between the people and notes > table. > > -Jonny > > doug wrote: >> Hallo -- can anyone offer me any pointers as to I should handle >> many-to-many relationships in Rails tests? >> Cheers, >> doug.Thanks very much, man! -- Posted via http://www.ruby-forum.com/.