Back to photostream

Fixture Hell

I am in Fixture Hell. Here's a drawing of the code I'm currently working on. I need to change the way the Access Control List (ACL) works. Without going into too much detail, to properly test this, I need working, interlocking objects for everything seen here.

 

I am strongly tempted to simply write a Cucumber step that says "Given the big hairy test fixture is set up" and in effect, goes out and loads up all of those objects, and to GET those objects I'm just gonna dump enough of the database to have one fully working ShopperReport. I already have fixtures in place for Organization, Manager, Store and User. It's the whole Survey (which defines the questions on a questionnaire) and ShopperReport (which holds the answers to a Survey for a given Store in a given Round) thing that's giving me fits. I don't wanna build generic fixtures for all this crap! I dont wanna!

 

Halp! Ideas?

211 views
0 faves
0 comments
Uploaded on January 10, 2012
Taken on January 10, 2012