@@ -162,7 +162,7 @@ describe('redis plugin', function() {
162162
163163 return previous ;
164164 } , [ ] ) ;
165- assert . equal ( messages . length , 7 ) ;
165+ assert . equal ( messages . length , 8 ) ;
166166 } ) ;
167167 it ( 'adds default config to the config object' , function ( ) {
168168 plugin . configure ( context ) ;
@@ -191,7 +191,7 @@ describe('redis plugin', function() {
191191 } ;
192192 plugin . beforeHook ( context ) ;
193193 } ) ;
194- it ( 'warns about missing optional filePattern, revisionKey, didDeployMessage, and connection info' , function ( ) {
194+ it ( 'warns about missing optional filePattern, distDir, revisionKey, didDeployMessage, and connection info' , function ( ) {
195195 plugin . configure ( context ) ;
196196 var messages = mockUi . messages . reduce ( function ( previous , current ) {
197197 if ( / - M i s s i n g c o n f i g : \s .* , u s i n g d e f a u l t : \s / . test ( current ) ) {
@@ -200,7 +200,7 @@ describe('redis plugin', function() {
200200
201201 return previous ;
202202 } , [ ] ) ;
203- assert . equal ( messages . length , 6 ) ;
203+ assert . equal ( messages . length , 7 ) ;
204204 } ) ;
205205 it ( 'does not add default config to the config object' , function ( ) {
206206 plugin . configure ( context ) ;
@@ -230,7 +230,7 @@ describe('redis plugin', function() {
230230 } ;
231231 plugin . beforeHook ( context ) ;
232232 } ) ;
233- it ( 'warns about missing optional filePattern, keyPrefix, revisionKey and didDeployMessage only' , function ( ) {
233+ it ( 'warns about missing optional filePattern, distDir, keyPrefix, revisionKey and didDeployMessage only' , function ( ) {
234234 plugin . configure ( context ) ;
235235 var messages = mockUi . messages . reduce ( function ( previous , current ) {
236236 if ( / - M i s s i n g c o n f i g : \s .* , u s i n g d e f a u l t : \s / . test ( current ) ) {
@@ -239,7 +239,7 @@ describe('redis plugin', function() {
239239
240240 return previous ;
241241 } , [ ] ) ;
242- assert . equal ( messages . length , 5 ) ;
242+ assert . equal ( messages . length , 6 ) ;
243243 } ) ;
244244
245245 it ( 'does not add default config to the config object' , function ( ) {
@@ -272,7 +272,8 @@ describe('redis plugin', function() {
272272 config : {
273273 redis : {
274274 keyPrefix : 'test-prefix' ,
275- filePattern : 'tests/index.html' ,
275+ filePattern : 'index.html' ,
276+ distDir : 'tests' ,
276277 revisionKey : '123abc' ,
277278 redisDeployClient : function ( context ) {
278279 return context . redisClient || new Redis ( context . config . redis ) ;
@@ -309,7 +310,8 @@ describe('redis plugin', function() {
309310 config : {
310311 redis : {
311312 keyPrefix : 'test-prefix' ,
312- filePattern : 'tests/index.html' ,
313+ filePattern : 'index.html' ,
314+ distDir : 'tests' ,
313315 revisionKey : '123abc' ,
314316 redisDeployClient : function ( context ) { return context . redisClient ; }
315317 }
@@ -340,7 +342,8 @@ describe('redis plugin', function() {
340342 config : {
341343 redis : {
342344 keyPrefix : 'test-prefix' ,
343- filePattern : 'tests/index.html' ,
345+ filePattern : 'index.html' ,
346+ distDir : 'tests' ,
344347 revisionKey : '123abc' ,
345348 redisDeployClient : function ( context ) {
346349 return context . redisClient || new Redis ( context . config . redis ) ;
@@ -391,7 +394,7 @@ describe('redis plugin', function() {
391394 plugin . didDeploy ( context ) ;
392395 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 ./ ) ;
393396 assert . match ( messageOutput , / T o a c t i v a t e , r u n / ) ;
394- assert . match ( messageOutput , / e m b e r 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 1 2 3 a b c - - e n v i r o n m e n t = q a / ) ;
395398 } ) ;
396399 } ) ;
397400} ) ;
0 commit comments