@@ -87,7 +87,7 @@ describe('redis plugin', function() {
87
87
assert . equal ( plugin . readConfig ( 'revisionKey' ) , '12345' ) ;
88
88
} ) ;
89
89
90
- it ( 'uses the commandLineArgs value if it exists' , function ( ) {
90
+ it ( 'uses the commandOptions value if it exists' , function ( ) {
91
91
var plugin = subject . createDeployPlugin ( {
92
92
name : 'redis'
93
93
} ) ;
@@ -102,8 +102,8 @@ describe('redis plugin', function() {
102
102
config : {
103
103
redis : config
104
104
} ,
105
- commandLineArgs : {
106
- revisionKey : 'abcd'
105
+ commandOptions : {
106
+ revision : 'abcd'
107
107
} ,
108
108
revisionKey : 'something-else'
109
109
} ;
@@ -114,7 +114,7 @@ describe('redis plugin', function() {
114
114
assert . equal ( config . revisionKey ( context ) , 'abcd' ) ;
115
115
} ) ;
116
116
117
- it ( 'uses the context value if it exists and commandLineArgs doesn\'t' , function ( ) {
117
+ it ( 'uses the context value if it exists and commandOptions doesn\'t' , function ( ) {
118
118
var plugin = subject . createDeployPlugin ( {
119
119
name : 'redis'
120
120
} ) ;
@@ -129,7 +129,7 @@ describe('redis plugin', function() {
129
129
config : {
130
130
redis : config
131
131
} ,
132
- commandLineArgs : { } ,
132
+ commandOptions : { } ,
133
133
revisionKey : 'something-else'
134
134
} ;
135
135
@@ -370,7 +370,7 @@ describe('redis plugin', function() {
370
370
plugin . activate = function ( ) { } ;
371
371
372
372
var context = {
373
- deployEnvironment : 'qa' ,
373
+ deployTarget : 'qa' ,
374
374
ui : {
375
375
write : function ( message ) {
376
376
messageOutput = messageOutput + message ;
@@ -394,7 +394,7 @@ describe('redis plugin', function() {
394
394
plugin . didDeploy ( context ) ;
395
395
assert . match ( messageOutput , / D e p l o y e d b u t d i d n o t a c t i v a t e r e v i s i o n 1 2 3 a b c ./ ) ;
396
396
assert . match ( messageOutput , / T o a c t i v a t e , r u n / ) ;
397
- assert . match ( messageOutput , / e m b e r d e p l o y : a c t i v a t e 1 2 3 a b c - - e n v i r o n m e n t = q a / ) ;
397
+ assert . match ( messageOutput , / e m b e r d e p l o y : a c t i v a t e q a - - r e v i s i o n = 1 2 3 a b c / ) ;
398
398
} ) ;
399
399
} ) ;
400
400
} ) ;
0 commit comments