Displaying 1 result from an estimated 1 matches for "driver_pay_per_mile".
2006 Jul 29
6
Complex tests - use a DSL instead of fixtures
I''ve been finding I use fixtures less and less lately. I am working with
rather complex testing of code that does data analysis. Each test may
involve 5-10 tables and some of the data is different in nearly every
test. I''ve found it much more readable to build a mini-DSL for the
setting up the database rather than using a huge amount of fixtures. It
has the added benefit of