From 8c12419340a94067b1de6a779791dc70eea25854 Mon Sep 17 00:00:00 2001 From: Eric Schultz Date: Sun, 1 Oct 2023 12:49:32 -0500 Subject: [PATCH] Correct the name of the NP_ID tag --- app/views/mailchimp/nonprofit_user_subscribe.json.jbuilder | 2 +- spec/lib/mailchimp_spec.rb | 2 +- .../mailchimp/nonprofit_user_subscribe.json.jbuilder_spec.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/mailchimp/nonprofit_user_subscribe.json.jbuilder b/app/views/mailchimp/nonprofit_user_subscribe.json.jbuilder index f3320bf2c..cbeff1b71 100644 --- a/app/views/mailchimp/nonprofit_user_subscribe.json.jbuilder +++ b/app/views/mailchimp/nonprofit_user_subscribe.json.jbuilder @@ -4,5 +4,5 @@ json.email_address @user.email json.status 'subscribed' json.merge_fields do - json.NONPROFIT_ID @nonprofit.id + json.NP_ID @nonprofit.id end diff --git a/spec/lib/mailchimp_spec.rb b/spec/lib/mailchimp_spec.rb index 98e9d2616..4631dedb9 100644 --- a/spec/lib/mailchimp_spec.rb +++ b/spec/lib/mailchimp_spec.rb @@ -116,7 +116,7 @@ 'email_address' => user.email, 'status' => 'subscribed', 'merge_fields' => { - 'NONPROFIT_ID' => nonprofit.id + 'NP_ID' => nonprofit.id } }) end diff --git a/spec/views/mailchimp/nonprofit_user_subscribe.json.jbuilder_spec.rb b/spec/views/mailchimp/nonprofit_user_subscribe.json.jbuilder_spec.rb index aae416fa2..203ccdeda 100644 --- a/spec/views/mailchimp/nonprofit_user_subscribe.json.jbuilder_spec.rb +++ b/spec/views/mailchimp/nonprofit_user_subscribe.json.jbuilder_spec.rb @@ -22,7 +22,7 @@ email_address: User.first.email, status: 'subscribed', merge_fields: { - NONPROFIT_ID: User.first.roles.first.host.id + NP_ID: User.first.roles.first.host.id } ) }