Re: [Rails] Re: Functional Testing Nested Resources

2013-02-06 Thread Johnneylee Rollins
And I suggest you do your best to minimize the use of factories/fixtures. In functional tests, you'll want to limit your use of factories or fixtures only to the setup step for your functional tests. This way you're only putting your application data in a specific state before you exercise the sys

[Rails] Re: Functional Testing Nested Resources

2013-02-06 Thread Robert Walker
AmateurCoder wrote in post #1095172: > I managed to get this to work. I used the fixture name instead of the > rigid > foreign key id in the capability_test.yml fixture. > > Thus, > > #fixtures > capability_types.yml > one: > name: MyString > capability_category: one > > two: > name: MyString

[Rails] Re: Functional Testing Nested Resources

2013-02-04 Thread AmateurCoder
I managed to get this to work. I used the fixture name instead of the rigid foreign key id in the capability_test.yml fixture. Thus, #fixtures capability_types.yml one: name: MyString capability_category: one two: name: MyString capability_category: one On Monday, February 4, 2013 9:03