How to skip the method of a callback when there is no method name?

后端 未结 0 1444
抹茶落季
抹茶落季 2021-02-14 02:41

I have some callbacks like this:

after_destroy :send_email

And I can skip them in Rspec passing the name:

Model.skip_callback(:des         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题