From 62af3d874537e797565d70fd6494183d9fba1ad9 Mon Sep 17 00:00:00 2001 From: Anton Khorev Date: Thu, 1 Aug 2024 19:02:16 +0300 Subject: [PATCH] Test tags with &-encoded characters in trace emails --- test/mailers/user_mailer_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/mailers/user_mailer_test.rb b/test/mailers/user_mailer_test.rb index 25123b392..d0c0e27cc 100644 --- a/test/mailers/user_mailer_test.rb +++ b/test/mailers/user_mailer_test.rb @@ -10,12 +10,12 @@ class UserMailerTest < ActionMailer::TestCase def test_gpx_description_tags trace = create(:trace) do |t| create(:tracetag, :trace => t, :tag => "one") - create(:tracetag, :trace => t, :tag => "two") - create(:tracetag, :trace => t, :tag => "three") + create(:tracetag, :trace => t, :tag => "two&three") + create(:tracetag, :trace => t, :tag => "fourone, two, three", email.html_part.body.to_s) + assert_match("one, two&three, four<five", email.html_part.body.to_s) end def test_gpx_success_all_traces_link -- 2.39.5