@@ -13,15 +13,15 @@ var fs = require('fs'),
13
13
helpers = require ( './helpers' ) ,
14
14
forever = require ( '../lib/forever' ) ;
15
15
16
- var script = path . join ( __dirname , '..' , 'examples' , 'log-on-interval.js' ) ,
17
- options = [ '--uid' , 'itShouldNotGoToUIDField' ] ;
16
+ var script = path . join ( __dirname , '..' , 'examples' , 'log-on-interval.js' ) ;
18
17
19
18
vows . describe ( 'forever/cli' ) . addBatch ( {
20
19
'When using forever CLI' : {
21
20
'and starting script using `forever start`' : helpers . spawn ( [ 'start' , script ] , {
22
21
'`forever.list` result' : helpers . list ( {
23
22
'should contain spawned process' : function ( list ) {
24
- helpers . assertList ( list ) ;
23
+ assert . isNotNull ( list ) ;
24
+ assert . lengthOf ( list , 1 ) ;
25
25
assert . equal ( list [ 0 ] . command , 'node' ) ;
26
26
assert . equal ( fs . realpathSync ( list [ 0 ] . file ) , fs . realpathSync ( script ) ) ;
27
27
helpers . assertStartsWith ( list [ 0 ] . logFile , forever . config . get ( 'root' ) ) ;
@@ -36,26 +36,5 @@ vows.describe('forever/cli').addBatch({
36
36
} )
37
37
} )
38
38
}
39
- } ) . addBatch ( {
40
- 'When using forever CLI' : {
41
- 'and starting script using `forever start` with arguments' : helpers . spawn ( [ 'start' , script ] . concat ( options ) , {
42
- '`forever.list` result' : helpers . list ( {
43
- 'should contain spawned process with proper options' : function ( list ) {
44
- helpers . assertList ( list ) ;
45
- assert . notEqual ( list [ 0 ] . uid , 'itShouldNotGoToUIDField' ) ;
46
- assert . deepEqual ( list [ 0 ] . options , options ) ;
47
- }
48
- } )
49
- } )
50
- }
51
- } ) . addBatch ( {
52
- 'When testing forever CLI' : {
53
- 'necessary cleanup' : {
54
- topic : function ( ) {
55
- forever . stopAll ( ) . on ( 'stopAll' , this . callback . bind ( { } , null ) ) ;
56
- } ,
57
- 'should take place' : function ( ) { }
58
- }
59
- }
60
39
} ) . export ( module ) ;
61
40
0 commit comments