X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/250413871ff57a247bd76a7b68d938271173258e..66f519d9ccc0efb15645e089c83d2f65ae328ce5:/test/mailers/user_mailer_test.rb diff --git a/test/mailers/user_mailer_test.rb b/test/mailers/user_mailer_test.rb index 2a547e752..9b895c475 100644 --- a/test/mailers/user_mailer_test.rb +++ b/test/mailers/user_mailer_test.rb @@ -15,7 +15,7 @@ class UserMailerTest < ActionMailer::TestCase end email = UserMailer.gpx_success(trace, 100) - assert_match("one, two&three, four<five", email.html_part.body.to_s) + assert_match("one, two&three, four<five", email.html_part.body.to_s) assert_match("one, two&three, four Settings.server_url, :protocol => Settings.server_protocol) - unsubscribe_url = Rails.application.routes.url_helpers.unsubscribe_changeset_url(changeset, :host => Settings.server_url, :protocol => Settings.server_protocol) + unsubscribe_url = Rails.application.routes.url_helpers.changeset_subscription_url(changeset, :host => Settings.server_url, :protocol => Settings.server_protocol) assert_select body, "a[href^='#{url}']" assert_select body, "a[href='#{unsubscribe_url}']", :count => 1 end