From 5d0c2cba07cdf8e81230c483c7429c1e47835351 Mon Sep 17 00:00:00 2001 From: Martin Brennan Date: Fri, 14 Jan 2022 09:33:15 +1000 Subject: [PATCH] DEV: Fix typo for email encoded (#15577) --- app/controllers/admin/email_controller.rb | 2 +- spec/requests/admin/email_controller_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/admin/email_controller.rb b/app/controllers/admin/email_controller.rb index 249eee87ba0..3b9224f1b34 100644 --- a/app/controllers/admin/email_controller.rb +++ b/app/controllers/admin/email_controller.rb @@ -171,7 +171,7 @@ class Admin::EmailController < Admin::AdminController # TODO: 2022-05-01 Remove this route once all sites have migrated over # to using the new email_encoded param. if deprecated_email_param_used - render plain: "warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded encoded_email parameter instead. email has been received and is queued for processing" + render plain: "warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing" else render plain: "email has been received and is queued for processing" end diff --git a/spec/requests/admin/email_controller_spec.rb b/spec/requests/admin/email_controller_spec.rb index fa146834aa2..3dff458e2f3 100644 --- a/spec/requests/admin/email_controller_spec.rb +++ b/spec/requests/admin/email_controller_spec.rb @@ -216,7 +216,7 @@ describe Admin::EmailController do post "/admin/email/handle_mail.json", params: { email: email('cc') } end expect(response.status).to eq(200) - expect(response.body).to eq("warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded encoded_email parameter instead. email has been received and is queued for processing") + expect(response.body).to eq("warning: the email parameter is deprecated. all POST requests to this route should be sent with a base64 strict encoded email_encoded parameter instead. email has been received and is queued for processing") end it 'should enqueue the right job, decoding the raw email param' do