Skip to content

Commit

Permalink
Moved migrations dir creation to before ook
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Dec 27, 2015
1 parent 710fbaf commit b864471
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
Binary file modified test/implementation/storage/blog.sqlite3
Binary file not shown.
5 changes: 1 addition & 4 deletions test/unit/commands.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,10 @@ const Helpers = {
}

describe('Commands', function () {
before(function () {
before(function (done) {
GLOBAL.use = function () {
return function () {}
}
})

after(function (done) {
fs.emptyDir(path.join(__dirname, './migrations'), function (error) {
if (error) {
done(error)
Expand Down
16 changes: 16 additions & 0 deletions test/unit/migrations/1451215262191_create_users_table.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

'use strict'

const Schema = use('Schema')

class NewSchema extends Schema {

up () {
}

down () {
}

}

module.exports = NewSchema
Binary file modified test/unit/storage/schema.sqlite3
Binary file not shown.
Binary file modified test/unit/storage/test.sqlite3
Binary file not shown.

0 comments on commit b864471

Please sign in to comment.