From aeff25185ad8c84e5e66f2a425e4f01a9273ea11 Mon Sep 17 00:00:00 2001 From: Eric Theise Date: Wed, 4 Dec 2024 10:31:28 -0800 Subject: [PATCH] Slogging through failing tests --- test/controllers/diary_comments_controller_test.rb | 4 ++-- test/models/message_test.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/controllers/diary_comments_controller_test.rb b/test/controllers/diary_comments_controller_test.rb index 65a71a9b57..0a3c220661 100644 --- a/test/controllers/diary_comments_controller_test.rb +++ b/test/controllers/diary_comments_controller_test.rb @@ -119,7 +119,7 @@ def test_create assert_redirected_to diary_entry_path(entry.user, entry, :anchor => "comment#{comment.id}") email = ActionMailer::Base.deliveries.first assert_equal [user.email], email.to - assert_equal "[OpenStreetMap] #{other_user.display_name} commented on a diary entry", email.subject + assert_equal "[OpenHistoricalMap] #{other_user.display_name} commented on a diary entry", email.subject assert_match(/New comment/, email.text_part.decoded) assert_match(/New comment/, email.html_part.decoded) ActionMailer::Base.deliveries.clear @@ -161,7 +161,7 @@ def test_create_spammy assert_redirected_to diary_entry_path(entry.user, entry, :anchor => "comment#{comment.id}") email = ActionMailer::Base.deliveries.first assert_equal [user.email], email.to - assert_equal "[OpenStreetMap] #{other_user.display_name} commented on a diary entry", email.subject + assert_equal "[OpenHistoricalMap] #{other_user.display_name} commented on a diary entry", email.subject assert_match %r{http://example.com/spam}, email.text_part.decoded assert_match %r{http://example.com/spam}, email.html_part.decoded ActionMailer::Base.deliveries.clear diff --git a/test/models/message_test.rb b/test/models/message_test.rb index 1bc15cba3f..6cf81996d2 100644 --- a/test/models/message_test.rb +++ b/test/models/message_test.rb @@ -161,7 +161,7 @@ def test_from_mail_prefix mail = Mail.new do from "from@example.com" to "to@example.com" - subject "[OpenStreetMap] Test message" + subject "[OpenHistoricalMap] Test message" date Time.now.utc content_type "text/plain; charset=utf-8" body "This is a test & a message"