What's the best way to test delayed_job chains with rSpec?

后端 未结 3 752
天命终不由人
天命终不由人 2021-02-13 20:41

Currently when I have a delayed method in my code like the following:

CommentMailer.delay.deliver_comments(@comment, true)

I write something li

3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-13 21:27

    Here are some discussions about chaining methods in rSpec that I found helpful:

    Stubbing Chained Methods with Rspec

    http://groups.google.com/group/rspec/browse_thread/thread/6b8394836d2390b0#

提交回复
热议问题