Spec destroy_all respects paranoid
- Add a spec to ensure that paranoid models don’t get deleted by destroy_all call. - ActiveRecords current implementation enumerates over the relation and calls &:destroy on each element. If that happens to change sometime in the future this test should notice it.
Showing
Please
register
or
sign in
to comment