@@ -87,7 +87,7 @@ describe('redis plugin', function() {
8787 assert . equal ( plugin . readConfig ( 'revisionKey' ) , '12345' ) ;
8888 } ) ;
8989
90- it ( 'uses the commandLineArgs value if it exists' , function ( ) {
90+ it ( 'uses the commandOptions value if it exists' , function ( ) {
9191 var plugin = subject . createDeployPlugin ( {
9292 name : 'redis'
9393 } ) ;
@@ -102,8 +102,8 @@ describe('redis plugin', function() {
102102 config : {
103103 redis : config
104104 } ,
105- commandLineArgs : {
106- revisionKey : 'abcd'
105+ commandOptions : {
106+ revision : 'abcd'
107107 } ,
108108 revisionKey : 'something-else'
109109 } ;
@@ -114,7 +114,7 @@ describe('redis plugin', function() {
114114 assert . equal ( config . revisionKey ( context ) , 'abcd' ) ;
115115 } ) ;
116116
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 ( ) {
118118 var plugin = subject . createDeployPlugin ( {
119119 name : 'redis'
120120 } ) ;
@@ -129,7 +129,7 @@ describe('redis plugin', function() {
129129 config : {
130130 redis : config
131131 } ,
132- commandLineArgs : { } ,
132+ commandOptions : { } ,
133133 revisionKey : 'something-else'
134134 } ;
135135
@@ -370,7 +370,7 @@ describe('redis plugin', function() {
370370 plugin . activate = function ( ) { } ;
371371
372372 var context = {
373- deployEnvironment : 'qa' ,
373+ deployTarget : 'qa' ,
374374 ui : {
375375 write : function ( message ) {
376376 messageOutput = messageOutput + message ;
@@ -394,7 +394,7 @@ describe('redis plugin', function() {
394394 plugin . didDeploy ( context ) ;
395395 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 ./ ) ;
396396 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 / ) ;
398398 } ) ;
399399 } ) ;
400400} ) ;
0 commit comments