 proxyquire = require('proxyquire').noCallThru()
 
 fsStub = require 'fs'
-Drafter = require 'drafter'
+DrafterClassStub = require 'drafter'
 requestStub = require 'request'
 loggerStub = require '../../src/logger'
 

  dredd = {}

  beforeEach () ->
    # sinon.spy Drafter::, 'make'
    sinon.spy fsStub, 'readFile'

  afterEach () ->
    # Drafter::make.restore()
    fsStub.readFile.restore()

  describe 'with legacy configuration', () ->

        dredd.runner.executeTransaction.restore()
        done()

    it 'should parse blueprint to ast', (done) ->
      dredd = new Dredd(configuration)
      sinon.stub dredd.runner, 'executeTransaction', (transaction, callback) ->
        callback()
      dredd.run (error) ->
        assert.ok DrafterClassStub::make.called
        dredd.runner.executeTransaction.restore()
        done()

