X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/70cb93a101638596ecae5782575ada2d4d08c8dd..6ad4260d2d9a40a9e6d1e1d5a7140563bc332792:/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