@@ -34,29 +34,41 @@ describe('Document constructor', function () {
3434    should ( refreshed ) . be . false ( ) ; 
3535    should ( document . id ) . be . undefined ( ) ; 
3636    should ( document . content ) . be . empty ( ) ; 
37+     should ( document . meta ) . be . empty ( ) ; 
3738    should ( document . version ) . be . undefined ( ) ; 
3839    should ( document . collection ) . be . exactly ( 'foo' ) ; 
3940
4041    document  =  new  Document ( collection ,  {  some : 'content'  } ) ; 
4142    should ( refreshed ) . be . false ( ) ; 
4243    should ( document . id ) . be . undefined ( ) ; 
4344    should ( document . content ) . match ( { some : 'content' } ) ; 
45+     should ( document . meta ) . be . empty ( ) ; 
4446    should ( document . version ) . be . undefined ( ) ; 
4547    should ( document . collection ) . be . exactly ( 'foo' ) ; 
4648
4749    document  =  new  Document ( collection ,  'id' ,  {  some : 'content' ,  _version : 123  } ) ; 
4850    should ( refreshed ) . be . false ( ) ; 
4951    should ( document . id ) . be . exactly ( 'id' ) ; 
5052    should ( document . content ) . match ( { some : 'content' } ) ; 
53+     should ( document . meta ) . be . empty ( ) ; 
5154    should ( document . version ) . be . exactly ( 123 ) ; 
5255    should ( document . collection ) . be . exactly ( 'foo' ) ; 
5356
5457    document  =  new  Document ( collection ,  'id' ) ; 
5558    should ( refreshed ) . be . false ( ) ; 
5659    should ( document . id ) . be . exactly ( 'id' ) ; 
5760    should ( document . content ) . be . empty ( ) ; 
61+     should ( document . meta ) . be . empty ( ) ; 
5862    should ( document . version ) . be . undefined ( ) ; 
5963    should ( document . collection ) . be . exactly ( 'foo' ) ; 
64+ 
65+     document  =  new  Document ( collection ,  'id' ,  {  some : 'content' ,  _version : 123  } ,  { author : 'toto' } ) ; 
66+     should ( refreshed ) . be . false ( ) ; 
67+     should ( document . id ) . be . exactly ( 'id' ) ; 
68+     should ( document . content ) . match ( { some : 'content' } ) ; 
69+     should ( document . meta ) . match ( { author : 'toto' } ) ; 
70+     should ( document . version ) . be . exactly ( 123 ) ; 
71+     should ( document . collection ) . be . exactly ( 'foo' ) ; 
6072  } ) ; 
6173
6274  it ( 'should expose documented properties with the right permissions' ,  function  ( )  { 
@@ -67,6 +79,7 @@ describe('Document constructor', function () {
6779    should ( document ) . have . propertyWithDescriptor ( 'headers' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
6880    should ( document ) . have . propertyWithDescriptor ( 'id' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
6981    should ( document ) . have . propertyWithDescriptor ( 'version' ,  {  enumerable : true ,  writable : true ,  configurable : false  } ) ; 
82+     should ( document ) . have . propertyWithDescriptor ( 'meta' ,  {  enumerable : true ,  writable : false ,  configurable : false  } ) ; 
7083  } ) ; 
7184
7285  it ( 'should promisify the right functions' ,  function  ( )  { 
0 commit comments