 {PgpKeyRing} = require '../../lib/keyring'
 
 data = {
-  msg : """-----BEGIN PGP MESSAGE-----
+  msgs : [
+    """-----BEGIN PGP MESSAGE-----
 Version: GnuPG/MacGPG2 v2.0.20 (Darwin)
 Comment: GPGTools - http://gpgtools.org
 


#===============================================================

exports.process_msg = (T,cb) ->
  [err,msg] = armor.decode data.msg
  T.no_error err
  T.equal msg.type, C.openpgp.message_types.generic, "Got a generic message type"
  proc = new Message ring

  cb()

#===============================================================

exports.process_msg_1 = (T,cb) ->
  [err,msg] = armor.decode data.msgs[1]
  T.no_error err
  T.equal msg.type, C.openpgp.message_types.generic, "Got a generic message type"
  proc = new Message ring
  await proc.parse_and_process msg.body, defer err, literals
  T.no_error err
  ind = literals[0].toString().indexOf '"devDependencies" : {'
  T.assert (ind > 0), "found some text we expected"
  T.assert not literals[0].signed_with?, "was not signed"
  cb()

#===============================================================
