Fixed rubocops.
This commit is contained in:
parent
c67b66ecde
commit
ab0388df15
2 changed files with 5 additions and 7 deletions
|
@ -77,7 +77,7 @@ or
|
|||
found = Channel::Pop3.new.fetch( { options: params[:inbound][:options] }, 'verify', subject )
|
||||
end
|
||||
rescue => e
|
||||
result {
|
||||
result = {
|
||||
result: 'invalid',
|
||||
message: e.to_s,
|
||||
subject: subject,
|
||||
|
|
|
@ -229,8 +229,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
|||
|
||||
# realtest - test I
|
||||
if !ENV['EMAILHELPER_MAILBOX_1']
|
||||
raise "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
return
|
||||
fail "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
end
|
||||
mailbox_user = ENV['EMAILHELPER_MAILBOX_1'].split(':')[0]
|
||||
mailbox_password = ENV['EMAILHELPER_MAILBOX_1'].split(':')[1]
|
||||
|
@ -359,8 +358,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
|||
|
||||
# realtest - test I
|
||||
if !ENV['EMAILHELPER_MAILBOX_1']
|
||||
raise "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
return
|
||||
fail "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
end
|
||||
mailbox_user = ENV['EMAILHELPER_MAILBOX_1'].split(':')[0]
|
||||
mailbox_password = ENV['EMAILHELPER_MAILBOX_1'].split(':')[1]
|
||||
|
@ -392,7 +390,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
|||
|
||||
# realtest - test I
|
||||
if !ENV['EMAILHELPER_MAILBOX_1']
|
||||
raise "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
fail "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
end
|
||||
mailbox_user = ENV['EMAILHELPER_MAILBOX_1'].split(':')[0]
|
||||
mailbox_password = ENV['EMAILHELPER_MAILBOX_1'].split(':')[1]
|
||||
|
@ -411,7 +409,7 @@ class EmailHelperTest < ActiveSupport::TestCase
|
|||
|
||||
# realtest - test I
|
||||
if !ENV['EMAILHELPER_MAILBOX_1']
|
||||
raise "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
fail "Need EMAILHELPER_MAILBOX_1 as ENV variable like export EMAILHELPER_MAILBOX_1='unittestemailhelper01@znuny.com:somepass'"
|
||||
end
|
||||
mailbox_user = ENV['EMAILHELPER_MAILBOX_1'].split(':')[0]
|
||||
mailbox_password = ENV['EMAILHELPER_MAILBOX_1'].split(':')[1]
|
||||
|
|
Loading…
Reference in a new issue