|
|
|
|
|
by sanderjd
4428 days ago
|
|
Your parent said "to the extent practical". Limiting interaction with external units as fundamental as the memory allocator is far from practical. I actually think DHH would agree with the "to the extent practical", but would think limiting DB access in tests of fundamentally DB-dependent things like ActiveRecord models is impractical. I think the debate is fundamentally about that practicality, and neither side is obviously right. |
|
ActiveRecord at its core is meant to generate and run SQL and give you object graphs back, and you need to test that the SQL it generates is correct and does the right thing.