diff --git a/test/relations.test.js b/test/relations.test.js index eb042903..a7954846 100644 --- a/test/relations.test.js +++ b/test/relations.test.js @@ -9,7 +9,7 @@ var Picture, PictureLink; var Person, Address; var Link; -var getTransientSchema = function(settings) { +var getTransientDataSource = function(settings) { return new Schema('transient', settings, db.modelBuilder); }; @@ -1685,7 +1685,7 @@ describe('relations', function () { var Other; before(function () { - tmp = getTransientSchema(); + tmp = getTransientDataSource(); db = getSchema(); Person = db.define('Person', {name: String}); Passport = tmp.define('Passport', @@ -1834,7 +1834,7 @@ describe('relations', function () { var address1, address2; before(function (done) { - tmp = getTransientSchema({defaultIdType: Number}); + tmp = getTransientDataSource({defaultIdType: Number}); db = getSchema(); Person = db.define('Person', {name: String}); Address = tmp.define('Address', {street: String}); @@ -2014,7 +2014,7 @@ describe('relations', function () { describe('embedsMany - explicit ids', function () { before(function (done) { - tmp = getTransientSchema(); + tmp = getTransientDataSource(); db = getSchema(); Person = db.define('Person', {name: String}); Address = tmp.define('Address', {street: String}); @@ -2421,7 +2421,7 @@ describe('relations', function () { before(function (done) { db = getSchema(); - tmp = getTransientSchema(); + tmp = getTransientDataSource(); Book = db.define('Book', {name: String}); Author = db.define('Author', {name: String}); diff --git a/test/transient.test.js b/test/transient.test.js index 89c1dd30..d6ad1d3e 100644 --- a/test/transient.test.js +++ b/test/transient.test.js @@ -7,14 +7,14 @@ var should = require('./init.js'); var db, TransientModel, Person, Widget, Item; -var getTransientSchema = function(settings) { +var getTransientDataSource = function(settings) { return new Schema('transient', settings); }; describe('Transient connector', function () { before(function () { - db = getTransientSchema(); + db = getTransientDataSource(); TransientModel = db.define('TransientModel', {}, { idInjection: false }); Person = TransientModel.extend('Person', {name: String});