test/mailers/confirmation_instructions_test.rb in devise-4.0.0.rc1 vs test/mailers/confirmation_instructions_test.rb in devise-4.0.0.rc2
- old
+ new
@@ -35,39 +35,39 @@
test 'send confirmation instructions to the user email' do
mail
assert_equal [user.email], mail.to
end
- test 'setup sender from configuration' do
+ test 'set up sender from configuration' do
assert_equal ['test@example.com'], mail.from
end
- test 'setup sender from custom mailer defaults' do
+ test 'set up sender from custom mailer defaults' do
Devise.mailer = 'Users::Mailer'
assert_equal ['custom@example.com'], mail.from
end
- test 'setup sender from custom mailer defaults with proc' do
+ test 'set up sender from custom mailer defaults with proc' do
Devise.mailer = 'Users::FromProcMailer'
assert_equal ['custom@example.com'], mail.from
end
test 'custom mailer renders parent mailer template' do
Devise.mailer = 'Users::Mailer'
assert_present mail.body.encoded
end
- test 'setup reply to as copy from sender' do
+ test 'set up reply to as copy from sender' do
assert_equal ['test@example.com'], mail.reply_to
end
- test 'setup reply to as different if set in defaults' do
+ test 'set up reply to as different if set in defaults' do
Devise.mailer = 'Users::ReplyToMailer'
assert_equal ['custom@example.com'], mail.from
assert_equal ['custom_reply_to@example.com'], mail.reply_to
end
- test 'setup subject from I18n' do
+ test 'set up subject from I18n' do
store_translations :en, devise: { mailer: { confirmation_instructions: { subject: 'Account Confirmation' } } } do
assert_equal 'Account Confirmation', mail.subject
end
end