var columns = require('../lib/columns'),
    conn = require('../lib/connection'),
    sinon = require('sinon');

require('mocha-as-promised')();

describe('Columns', function() {
    describe('#get', function() {

        it('should return a array of columns for a given table', function() {
            return conn.connect('./integrationTests/db/db-config.json')
                .then(function(knex) {
                    return columns.get('heinzel').then(function(cols) {
                        console.log(cols);
                        return cols;
                    }).should.eventually.to.have.length(4);
                });
        });

    });
});

var columns = require('../lib/columns'),
    conn = require('../lib/connection'),
    sinon = require('sinon');

require('mocha-as-promised')();

describe('Columns', function() {
    describe('#get', function() {

        it('should return a array of columns for a given table', function() {
            return conn.connect('./integrationTests/db/db-config.json')
                .then(function(knex) {
                    return columns.get('heinzel').then(function(cols) {
                        console.log(cols);
                        return cols;
                    }).should.eventually.to.have.length(5);
                });
        });

    });
});

test fix