I am trying to debug my user_mailer.rb in my test environment. But I donβt know why the debugger does not stop where it was supposed.
So, the code that I roughly have: user_mailer_spec.rb
describe UserMailer do describe '#send_notification_letters' do
In user_mailer.rb
class UserMailer < ActionMailer::Base def send_notification_letters(user) byebug
The question is why beebug / pry does not stop in user_mail.rb when I run the rspec spec/mailer/user_mailer_spec.rb ?
And why?
How to make him stop at this breakpoint?
Is there a bug in the debugger?
ruby-on-rails rspec pry actionmailer byebug
Sida zhou
source share