File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -520,6 +520,7 @@ pbxProject.prototype.addToXcVersionGroupSection = function(file) {
520520 isa : 'XCVersionGroup' ,
521521 children : file . models . map ( function ( el ) { return el . fileRef ; } ) ,
522522 currentVersion : file . currentModel . fileRef ,
523+ name : path . basename ( file . path ) ,
523524 path : file . path ,
524525 sourceTree : '"<group>"' ,
525526 versionGroupType : 'wrapper.xcdatamodel'
Original file line number Diff line number Diff line change @@ -151,6 +151,7 @@ exports.dataModelDocument = {
151151 test . equal ( xcVersionGroupEntry . isa , 'XCVersionGroup' ) ;
152152 test . equal ( xcVersionGroupEntry . children [ 0 ] , newFile . models [ 0 ] . fileRef ) ;
153153 test . equal ( xcVersionGroupEntry . currentVersion , newFile . currentModel . fileRef ) ;
154+ test . equal ( xcVersionGroupEntry . name , path . basename ( singleDataModelFilePath ) ) ;
154155 test . equal ( xcVersionGroupEntry . path , singleDataModelFilePath ) ;
155156 test . equal ( xcVersionGroupEntry . sourceTree , '"<group>"' ) ;
156157 test . equal ( xcVersionGroupEntry . versionGroupType , 'wrapper.xcdatamodel' ) ;
You can’t perform that action at this time.
0 commit comments