[rspec-users] We can't 100% remove our unit tests from the database, can we?
srbaker at pobox.com
Thu Feb 22 16:33:09 EST 2007
On 22-Feb-07, at 12:41 PM, Pat Maddox wrote:
> I hope this isn't too rambly. This is sort of a brain dump of a
> subject I've been thinking about for months as I've used RSpec.
> Let's say we've got a simple query method, that will find all the
> users in the DB older than 18. Our model could look like
The way you describe is the way to do this. It sucks, but it's not
our fault, it's ActiveRecord's fault. AcitveRecord has extra
suckage, baked in for free. You don't even have to pay extra.
More information about the rspec-users