]> git.openstreetmap.org Git - rails.git/blobdiff - test/system/user_email_change_test.rb
make docker image use nodejs v18
[rails.git] / test / system / user_email_change_test.rb
index eceb7341665e5e365a15cbf92172f5ddfeda020b..ec2c8f093e4dd02d52ae7b0af1cd7abc4aeb78d4 100644 (file)
@@ -21,9 +21,9 @@ class UserEmailChangeTest < ApplicationSystemTestCase
     email = ActionMailer::Base.deliveries.first
     assert_equal 1, email.to.count
     assert_equal "new_tester@example.com", email.to.first
-    assert_match %r{/user/confirm-email\?confirm_string=[A-Za-z0-9-_%]+\s}, email.parts[0].parts[0].decoded
+    assert_match %r{/user/confirm-email\?confirm_string=[A-Za-z0-9\-_%]+\s}, email.parts[0].parts[0].decoded
 
-    if email.parts[0].parts[0].decoded =~ %r{(/user/confirm-email\?confirm_string=[A-Za-z0-9-_%]+)\s}
+    if email.parts[0].parts[0].decoded =~ %r{(/user/confirm-email\?confirm_string=[A-Za-z0-9\-_%]+)\s}
       visit Regexp.last_match(1)
       assert page.has_css?("body.accounts-edit")
     end