@@ -417,6 +417,29 @@ describe('angular-fullstack generator', function () {
417417 runTest ( 'grunt test:server' , this , done , 'Foo' ) ;
418418 } ) ;
419419
420+ it ( 'should pass lint with generated path name endpoint' , function ( done ) {
421+ runTest ( 'grunt jshint' , this , done , 'foo/bar' ) ;
422+ } ) ;
423+
424+ it ( 'should run server tests successfully with generated path name endpoint' , function ( done ) {
425+ runTest ( 'grunt test:server' , this , done , 'foo/bar' ) ;
426+ } ) ;
427+
428+ it ( 'should generate expected files with path name endpoint' , function ( done ) {
429+ runTest ( '(exit 0)' , this , function ( ) {
430+ helpers . assertFile ( [
431+ 'server/api/foo/bar/index.js' ,
432+ 'server/api/foo/bar/index.spec.js' ,
433+ 'server/api/foo/bar/bar.controller.js' ,
434+ 'server/api/foo/bar/bar.events.js' ,
435+ 'server/api/foo/bar/bar.integration.js' ,
436+ 'server/api/foo/bar/bar.model.js' ,
437+ 'server/api/foo/bar/bar.socket.js'
438+ ] ) ;
439+ done ( ) ;
440+ } , 'foo/bar' ) ;
441+ } ) ;
442+
420443 it ( 'should use existing config if available' , function ( done ) {
421444 this . timeout ( 60000 ) ;
422445 fs . copySync ( __dirname + '/fixtures/.yo-rc.json' , __dirname + '/temp/.yo-rc.json' ) ;
0 commit comments