Rails fixtures — how do you set foreign keys?

You should use named fixtures, which automatically generate an id number for you where you don’t provide one. These id numbers are essentially integer hashes of whatever string you use. Don’t add the “_id” if you’re referencing the named version: # recipes.yml chicken_soup: cookbook: my_recipes # cookbooks.yml my_recipes: title: My Test Cookbook

What is the best automated website UI testing framework [closed]

I definitively recommend Selenium, you can use it from .NET, supports different browsers, works in automatic builds and CI processes (we use it from CCNet). The code is stable. It has a few quirks, but after all they all do. Whichever tool you choose, I recommend making your own test facade class(es) around it. The … Read more