Skip to content

Commit

Permalink
Make #unmatching_mail_jobs working with frozen warning in Ruby 3.4
Browse files Browse the repository at this point in the history
  • Loading branch information
benoittgt committed Dec 20, 2024
1 parent a0dc958 commit 11b5ced
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 11b5ced

Please sign in to comment.