Resolve 96 Rubocop Lint/AmbiguousRegexpLiteral conflicts

This commit is contained in:
Wil 2018-06-08 15:51:17 -04:00 committed by Andy Allan
parent 5a2d2f97ce
commit a182820139
19 changed files with 96 additions and 100 deletions

View file

@ -414,8 +414,8 @@ class DiaryEntryControllerTest < ActionController::TestCase
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_match /New comment/, email.text_part.decoded
assert_match /New comment/, email.html_part.decoded
assert_match(/New comment/, email.text_part.decoded)
assert_match(/New comment/, email.html_part.decoded)
ActionMailer::Base.deliveries.clear
comment = DiaryComment.order(:id).last
assert_equal entry.id, comment.diary_entry_id