From: Anton Khorev Date: Thu, 1 Aug 2024 16:02:16 +0000 (+0300) Subject: Test tags with &-encoded characters in trace emails X-Git-Tag: live~445^2~1 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/62af3d874537e797565d70fd6494183d9fba1ad9 Test tags with &-encoded characters in trace emails --- 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