'use strict';

var assert    = require('assert');
var grunt     = require('grunt');
var Sequelize = require('sequelize');

var sequelize = new Sequelize('database', 'username', 'password', {
  dialect: 'sqlite',
  storage: 'test/tmp.sqlite'
});

grunt.task.init = function() {};

// Init config
grunt.initConfig({
  sequelize: {
    options: {
      dialect: 'sqlite',
      storage: 'test/tmp.sqlite',
      migrationsPath: 'test/migrations'
    }
  }
});

grunt.loadTasks('tasks');

describe('grunt-sequelize', function() {

  describe('sequelize:migrate', function() {
    describe('without any arguments', function() {
      it('should migrate to the top migration', function(done) {

        grunt.util.spawn({ grunt: true, args: ['sequelize:migrate'] }, function(error, result) {
          console.log(result);
          assert.equal(result.code, 0);
          done();
        });

      });
    });
    describe('with a migration argument');
  });

  describe('sequelize:undo', function() {
    it('should undo the last migration', function(done) {
      grunt.util.spawn({ grunt: true, args: ['sequelize:undo'] }, function(error, result) {
        console.log(result);
        assert.equal(result.code, 0);
        done();
      });
    });
  });

});

@@ -939,16 +939,36 @@
 rgument'
+, function() %7B%0A    %7D
 );%0A  %7D);
@@ -969,16 +969,17 @@
 %0A  %7D);%0A%0A
+%0A
   descri

Expand describe block