Skip to content

Commit cc71bfc

Browse files
committed
Added name to XCVersionGroup
1 parent 1e8d3f9 commit cc71bfc

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

lib/pbxProject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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'

test/dataModelDocument.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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');

0 commit comments

Comments
 (0)