From ef968d19000a97b26aaa99dc1e71c855f5b64a00 Mon Sep 17 00:00:00 2001 From: Emily <31373203+amecreate@users.noreply.github.com> Date: Mon, 2 Dec 2024 11:44:37 -0500 Subject: [PATCH] AO3-6773 Fix url param pluralisation in invite_request_declined mailer preview (#4976) * AO3-6773 fix url param pluralisation in invite_request_declined mailer preview * AO3-6773 fix url param pluralisation in invite_request_declined mailer preview update --- test/mailers/previews/user_mailer_preview.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/mailers/previews/user_mailer_preview.rb b/test/mailers/previews/user_mailer_preview.rb index 4310f51a96..7aa217d946 100644 --- a/test/mailers/previews/user_mailer_preview.rb +++ b/test/mailers/previews/user_mailer_preview.rb @@ -42,7 +42,7 @@ def claim_notification def invite_request_declined user = create(:user, :for_mailer_preview) - total = params[:total] || 1 + total = params[:total] ? params[:total].to_i : 1 reason = "test reason" UserMailer.invite_request_declined(user.id, total, reason) end