|
|
|
|
|
by joevandyk
4428 days ago
|
|
I think it's impractical to test things that use ActiveRecord without testing the database. 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. |
|
I think one of the fundamental, if not really directly addressed, divides between the sides here is over the question of whether domain models "using" (being tightly coupled to) the persistence layer is sensible architecture even outside of consequences for testing.