Tag Archives: fixtures

Foxy Fixtures Explained

Rails integrated a plugin called Foxy Fixtures into the core API. How does it work? It allows you to refer to other fixtures by name, instead of by ID (so no more hard-coded IDs). But there’s a gotcha–the IDs are generated automatically, so they’re not 1 or 2 like you might expect (for your first and second fixtures). Continue reading

Posted in Gems and Plugins, Testing | Tagged , , | 1 Comment