Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions spec/support/shared_examples_for_mailer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
expect(mail.from).to eq [IdentityConfig.store.email_from]
expect(mail[:from].display_names).to eq [IdentityConfig.store.email_from_display_name]
end

it 'does not include markup or layout with lack of broad email support' do
body = mail.parts.first.body

# https://www.caniemail.com/features/image-svg/
expect(body).not_to have_css('img[src$=".svg"]')
end
end

# expects there to be a let(:user) in scope
Expand Down