You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've checked with famous ruby debug tool called "puts" :) and observer is triggered when running a spec, but I'm getting failure:
Failure/Error: PostMailer.should_receive(:deliver_some_email) do |mail|
(<PostMailer (class)>).deliver_some_email(any args)
expected: 1 time
received: 0 times
But when checking traditional way, like ActionMailer::Base.deliveries.last.subject, it has expected value
The text was updated successfully, but these errors were encountered:
Hi,
In my application emails is send inside observer. My spec looks like this
I've checked with famous ruby debug tool called "puts" :) and observer is triggered when running a spec, but I'm getting failure:
But when checking traditional way, like ActionMailer::Base.deliveries.last.subject, it has expected value
The text was updated successfully, but these errors were encountered: