temp
This commit is contained in:
parent
4856bc718d
commit
394dc0506f
1 changed files with 13 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue