var assert = require('assert')
  , gpg = require('../');
  
describe('gpg', function(){ 
  
  describe('encrypt', function(){
    it('should encrypt data', function(done){
      var mysecret = 'Hello World';
      var args = [
        '--no-use-agent'
      , '--batch'
      , '--default-key', 'D5762441'
      , '--recipient', 'D5762441'
      ];
      gpg.encrypt(mysecret, args, function(err, encrypted){
        assert.ifError(err);
        assert.ok(encrypted.length);
        done();
      });
    });
  });
  
  describe('clearsign', function(){
    it('should clearsign data', function(done){
      var mymessage = 'Hello, this is me!';
      var args = [
        '--no-use-agent'
      , '--batch'
      , '--default-key', 'D5762441'
      ];
      gpg.clearsign(mymessage, args, function(err, clearsigned){
        assert.ifError(err);
        assert.ok(clearsigned.length);
        done();
      });
    });
  });
  
});

@@ -212,32 +212,123 @@
    var args = %5B%0A
+        '--trust-model', 'always', // disable trust checking for purposes of running tests%0A
         '--no-us
@@ -741,32 +741,123 @@
    var args = %5B%0A
+        '--trust-model', 'always', // disable trust checking for purposes of running tests%0A
         '--no-us

use `always` trust model for test keys