Soft deletion with paranoia and factory girl

1k Views Asked by At

When I call delete on records in rspec it seems they are permanently deleted. I assume this has something to do with factory girl. Is there a way to test soft deletion with paranoia, factory girls, rails and rspec without doing anything invasive?

1

There are 1 best solutions below

0
On BEST ANSWER

Soft delete is triggered by calling destroy, not delete, which skips callbacks.