File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
spec/mailers/better_together Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments