File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,13 @@ exports['lastKnownFileType'] = {
5050 test . done ( ) ;
5151 } ,
5252
53+ 'should detect that a .xcdatamodel path means wrapper.xcdatamodel' : function ( test ) {
54+ var sourceFile = new pbxFile ( 'dataModel.xcdatamodel' ) ;
55+
56+ test . equal ( 'wrapper.xcdatamodel' , sourceFile . lastKnownFileType ) ;
57+ test . done ( ) ;
58+ } ,
59+
5360 'should allow lastKnownFileType to be overridden' : function ( test ) {
5461 var sourceFile = new pbxFile ( 'Plugins/ChildBrowser.m' ,
5562 { lastKnownFileType : 'somestupidtype' } ) ;
@@ -73,6 +80,12 @@ exports['group'] = {
7380 test . equal ( 'Sources' , sourceFile . group ) ;
7481 test . done ( ) ;
7582 } ,
83+ 'should be Sources for data model document files' : function ( test ) {
84+ var dataModelFile = new pbxFile ( 'dataModel.xcdatamodeld' ) ;
85+
86+ test . equal ( 'Sources' , dataModelFile . group ) ;
87+ test . done ( ) ;
88+ } ,
7689 'should be Frameworks for frameworks' : function ( test ) {
7790 var framework = new pbxFile ( 'libsqlite3.dylib' ) ;
7891
You can’t perform that action at this time.
0 commit comments