@@ -33,6 +33,19 @@ describe("Commit", function() {
3333 assert . equal ( this . commit . message ( ) , "Update README.md" ) ;
3434 } ) ;
3535
36+ it ( "has a raw message" , function ( ) {
37+ assert . equal ( this . commit . messageRaw ( ) , "Update README.md" ) ;
38+ } ) ;
39+
40+ it ( "has a message encoding" , function ( ) {
41+ var encoding = this . commit . messageEncoding ( ) ;
42+ assert . ok ( encoding === "UTF-8" || encoding === undefined ) ;
43+ } ) ;
44+
45+ it ( "has a summary" , function ( ) {
46+ assert . equal ( this . commit . summary ( ) , "Update README.md" ) ;
47+ } ) ;
48+
3649 it ( "has a sha" , function ( ) {
3750 assert . equal ( this . commit . sha ( ) , oid ) ;
3851 } ) ;
@@ -150,6 +163,11 @@ describe("Commit", function() {
150163 } ) ;
151164 } ) ;
152165
166+ it ( "has owner" , function ( ) {
167+ var owner = this . commit . owner ( ) ;
168+ assert . ok ( owner instanceof Repository ) ;
169+ } ) ;
170+
153171 it ( "can walk its repository's history" , function ( done ) {
154172 var historyCount = 0 ;
155173 var expectedHistoryCount = 364 ;
@@ -197,6 +215,10 @@ describe("Commit", function() {
197215 } ) ;
198216 } ) ;
199217
218+ it ( "has a parent count" , function ( ) {
219+ assert . equal ( 1 , this . commit . parentcount ( ) ) ;
220+ } ) ;
221+
200222 it ( "can retrieve and walk a commit tree" , function ( ) {
201223 var commitTreeEntryCount = 0 ;
202224 var expectedCommitTreeEntryCount = 198 ;
0 commit comments