This commit is contained in:
Jimmy 2021-03-11 23:15:07 -08:00
parent 4856bc718d
commit 394dc0506f

View file

@ -25,7 +25,19 @@ describe Mailbot do
it 'assigns the email body' do it 'assigns the email body' do
expect(mail.body).to include 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit' expect(mail.body).to include 'Lorem ipsum dolor sit amet, consectetuer adipiscing elit'
end end
it 'assigns the email body with the correct color' do
# p mail.body
# expect(mail.body).to have_selector('#border.background-color', '#0B3559')
# Capybara.within_frame(mail.body) do
# color = find('#border').native.css_value('background-color')
# expect(color).to eq('#0B3559')
# end
# TODO: select border ...
expect(mail.body).to include('background-color: ' + conference.color)
end
it 'assigns the email body with the correct logo' do it 'assigns the email body with the correct logo' do
expect(mail.body).to include 'snapcon_logo' expect(mail.body).to include 'snapcon_logo'
end end