Skip to content

Commit

Permalink
Make #unmatching_mail_jobs msg var mutable
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt committed Dec 20, 2024
1 parent a0dc958 commit 1ee205d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rspec/rails/matchers/have_enqueued_mail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -129,13 +129,13 @@ def unmatching_mail_jobs
end

def unmatching_mail_jobs_message
msg = "Queued deliveries:"
messages = ["Queued deliveries:"]

unmatching_mail_jobs.each do |job|
msg << "\n #{mail_job_message(job)}"
messages << " #{mail_job_message(job)}"
end

msg
messages.join("\n")
end

def mail_job_message(job)
Expand Down

0 comments on commit 1ee205d

Please sign in to comment.