Switched all instances of 'not blank?' to 'present?'

This commit is contained in:
Michael Crismali
2014-04-17 20:28:17 -05:00
parent 081ea9e0ba
commit f37b10ef87
5 changed files with 8 additions and 9 deletions

View File

@@ -53,7 +53,7 @@ class ConfirmationInstructionsTest < ActionMailer::TestCase
test 'custom mailer renders parent mailer template' do
Devise.mailer = 'Users::Mailer'
assert_not_blank mail.body.encoded
assert_present mail.body.encoded
end
test 'setup reply to as copy from sender' do

View File

@@ -55,7 +55,7 @@ class ResetPasswordInstructionsTest < ActionMailer::TestCase
test 'custom mailer renders parent mailer template' do
Devise.mailer = 'Users::Mailer'
assert_not_blank mail.body.encoded
assert_present mail.body.encoded
end
test 'setup reply to as copy from sender' do

View File

@@ -56,7 +56,7 @@ class UnlockInstructionsTest < ActionMailer::TestCase
test 'custom mailer renders parent mailer template' do
Devise.mailer = 'Users::Mailer'
assert_not_blank mail.body.encoded
assert_present mail.body.encoded
end
test 'setup reply to as copy from sender' do

View File

@@ -9,10 +9,9 @@ class ActiveSupport::TestCase
assert assertion.blank?
end
def assert_not_blank(assertion)
assert !assertion.blank?
def assert_present(assertion)
assert assertion.present?
end
alias :assert_present :assert_not_blank
def assert_email_sent(address = nil, &block)
assert_difference('ActionMailer::Base.deliveries.size', &block)