text: var helper = require('../lib');
  var request = helper.getRequest();
  
  describe('Multipart Requests', function () {
      before(function (done) {
          helper.drakov.run({sourceFiles: 'src/test/example/md/multipart.md'}, done);
      });
  
      after(function (done) {
          helper.drakov.stop(done);
      });
  
      describe('/api/multipart', function () {
          it('should respond with success response when content type is Multipart', function (done) {
              request.post('/api/multipart')
                  .set('Content-type', 'multipart/form-data; boundary=---BOUNDARY')
                  .send('it does not really matter')
                  .expect(200)
                  .expect('Content-type', 'application/json;charset=UTF-8')
                  .expect({success: true})
                  .end(helper.endCb(done));
          });
  
          it('should respond with error when request does not have Content Type as multipart', function (done) {
              request.post('/api/multipart')
                  .set('Content-type', 'application/json')
                  .send()
                  .expect(400)
                  .expect('Content-type', 'application/json; charset=utf-8')
                  .expect(function(res) {
                      res.body.got.host = 'some-host'
                      res.body.got['user-agent'] = 'some-user-agent'
                  })
                  .expect({
                      message: 'Found URL but request doesn\'t contain required headers to match against any known fixture',
                      want: [['Content-Type: multipart/form-data; boundary=---BOUNDARY']],
                      got: {
                          host: 'some-host',
                          'accept-encoding': 'gzip, deflate',
                          'user-agent': 'some-user-agent',
                          'content-type': 'application/json',
                          connection: 'close',
                          'content-length': '0'
                      },
                      errorHeaders: [ 'content-type' ]
                  })
                  .end(helper.endCb(done));
          });
      });
  
  });
  