Added test debugger for test signing

This commit is contained in:
Priit Tark 2015-03-27 15:13:06 +02:00
parent f146bca5c7
commit 0e3382f348
2 changed files with 4 additions and 1 deletions

View file

@ -58,6 +58,9 @@ class Certificate < ActiveRecord::Base
errors.add(:base, I18n.t('failed_to_create_certificate'))
logger.error('FAILED TO CREATE CLIENT CERTIFICATE')
logger.error(err)
# rubocop:disable Rails/Output
puts "Certificate sign issue: #{err.inspect}" if Rails.env.test?
# rubocop:enable Rails/Output
return false
end
end

View file

@ -265,7 +265,7 @@ class Domain < ActiveRecord::Base
changed: #{registrar.updated_at.to_s(:db)}
EOS
end
# rubocop:enabled Metrics/MethodLength
# rubocop:enable Metrics/MethodLength
def contacts_body
out = ''