Skip to content

Commit

Permalink
Slogging through failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Dec 4, 2024
1 parent 98e3ff4 commit aeff251
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions test/controllers/diary_comments_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion test/models/message_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ def test_from_mail_prefix
mail = Mail.new do
from "[email protected]"
to "[email protected]"
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"
Expand Down

0 comments on commit aeff251

Please sign in to comment.