Skip to content

Commit 2e8d6b3

Browse files
committed
updates tests to reflect changes made to email body
1 parent 1aa1c0b commit 2e8d6b3

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

spec/mailers/better_together/conversation_mailer_spec.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,14 @@ module BetterTogether
1717
end
1818

1919
it 'renders the headers' do
20-
expect(mail.subject).to eq("New message in conversation \"#{conversation.title}\"")
20+
expect(mail.subject).to have_content('conversation has an unread message')
2121
expect(mail.to).to include(recipient.email)
2222
expect(mail.from).to include('[email protected]')
2323
end
2424

2525
it 'renders the body' do
2626
expect(mail.body.encoded).to have_content("Hello #{recipient.person.name}")
27-
expect(mail.body.encoded).to have_content("#{sender.person.name}:")
28-
expect(mail.body.encoded).to have_content(message.content.to_plain_text)
27+
expect(mail.body.encoded).to have_content("You have an unread message from #{sender.person.name}:")
2928
end
3029

3130
it 'sends a message notification email' do

0 commit comments

Comments
 (0)