getTransientSchema => getTransientDataSource

This commit is contained in:
Fabien Franzen 2014-09-04 17:56:26 +02:00
parent 72930bf20b
commit 7b788a2903
2 changed files with 7 additions and 7 deletions

View File

@ -9,7 +9,7 @@ var Picture, PictureLink;
var Person, Address; var Person, Address;
var Link; var Link;
var getTransientSchema = function(settings) { var getTransientDataSource = function(settings) {
return new Schema('transient', settings, db.modelBuilder); return new Schema('transient', settings, db.modelBuilder);
}; };
@ -1685,7 +1685,7 @@ describe('relations', function () {
var Other; var Other;
before(function () { before(function () {
tmp = getTransientSchema(); tmp = getTransientDataSource();
db = getSchema(); db = getSchema();
Person = db.define('Person', {name: String}); Person = db.define('Person', {name: String});
Passport = tmp.define('Passport', Passport = tmp.define('Passport',
@ -1834,7 +1834,7 @@ describe('relations', function () {
var address1, address2; var address1, address2;
before(function (done) { before(function (done) {
tmp = getTransientSchema({defaultIdType: Number}); tmp = getTransientDataSource({defaultIdType: Number});
db = getSchema(); db = getSchema();
Person = db.define('Person', {name: String}); Person = db.define('Person', {name: String});
Address = tmp.define('Address', {street: String}); Address = tmp.define('Address', {street: String});
@ -2014,7 +2014,7 @@ describe('relations', function () {
describe('embedsMany - explicit ids', function () { describe('embedsMany - explicit ids', function () {
before(function (done) { before(function (done) {
tmp = getTransientSchema(); tmp = getTransientDataSource();
db = getSchema(); db = getSchema();
Person = db.define('Person', {name: String}); Person = db.define('Person', {name: String});
Address = tmp.define('Address', {street: String}); Address = tmp.define('Address', {street: String});
@ -2421,7 +2421,7 @@ describe('relations', function () {
before(function (done) { before(function (done) {
db = getSchema(); db = getSchema();
tmp = getTransientSchema(); tmp = getTransientDataSource();
Book = db.define('Book', {name: String}); Book = db.define('Book', {name: String});
Author = db.define('Author', {name: String}); Author = db.define('Author', {name: String});

View File

@ -7,14 +7,14 @@ var should = require('./init.js');
var db, TransientModel, Person, Widget, Item; var db, TransientModel, Person, Widget, Item;
var getTransientSchema = function(settings) { var getTransientDataSource = function(settings) {
return new Schema('transient', settings); return new Schema('transient', settings);
}; };
describe('Transient connector', function () { describe('Transient connector', function () {
before(function () { before(function () {
db = getTransientSchema(); db = getTransientDataSource();
TransientModel = db.define('TransientModel', {}, { idInjection: false }); TransientModel = db.define('TransientModel', {}, { idInjection: false });
Person = TransientModel.extend('Person', {name: String}); Person = TransientModel.extend('Person', {name: String});