Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 rspec 中对记录调用 delete 时,它们似乎被永久删除。我认为这与工厂女孩有关。有没有办法用偏执狂、工厂女孩、rails 和 rspec 来测试软删除而不做任何侵入性的事情?
软删除是通过调用destroy而不是delete触发的,它会跳过回调。