diff --git a/docs/swoj-codec-test.html b/docs/swoj-codec-test.html index 59798e1..8cec394 100644 --- a/docs/swoj-codec-test.html +++ b/docs/swoj-codec-test.html @@ -3,10 +3,10 @@ , assert = require('assert') , mock = require('./mock') , swoj = require('../lib/swoj-codec') - ;

Create a process wide default DB, with mocked up uuids.

process.db = new mock.DB();

process.db must exist before we can require our model. You can + ;

Create a process wide MockDB, with mocked up uuids.

process.db = new mock.DB();

process.db must exist before we can require our model. You can leave your model untouched by BarricanDB and manually call -DB.registerInstance as each new object is constructed. This way -is generally easier.

var model = require('./demo-model');

Construct a simple model from which objects can be persisted.

var house = new model.House("301 Cobblestone Wy., Bedrock, 70777");
+DB.registerInstance as each new object is constructed, But This 
+way is generally easier.

var model = require('./demo-model');

Construct a simple model from which objects can be persisted.

var house = new model.House("301 Cobblestone Wy., Bedrock, 70777");
 var fred = new model.Person("Fred", "Flintstone");
 fred.house = house;
 var wilma = new model.Person("Wilma", "Flintstone");
diff --git a/test/swoj-codec-test.js b/test/swoj-codec-test.js
index ced0468..c7c1d47 100644
--- a/test/swoj-codec-test.js
+++ b/test/swoj-codec-test.js
@@ -7,13 +7,13 @@ var vows = require('vows')
   , swoj = require('../lib/swoj-codec')
   ;
 
-// Create a process wide default DB, with mocked up uuids.
+// Create a process wide MockDB, with mocked up uuids.
 process.db = new mock.DB();
 
 // process.db must exist before we can require our model. You can 
 // leave your model untouched by BarricanDB and manually call 
-// DB.registerInstance as each new object is constructed. This way 
-// is generally easier.
+// DB.registerInstance as each new object is constructed, But This 
+// way is generally easier.
 var model = require('./demo-model');
 
 // Construct a simple model from which objects can be persisted.