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 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});

View File

@ -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});