@@ -162,7 +162,7 @@ describe('redis plugin', function() {
162
162
163
163
return previous ;
164
164
} , [ ] ) ;
165
- assert . equal ( messages . length , 7 ) ;
165
+ assert . equal ( messages . length , 8 ) ;
166
166
} ) ;
167
167
it ( 'adds default config to the config object' , function ( ) {
168
168
plugin . configure ( context ) ;
@@ -191,7 +191,7 @@ describe('redis plugin', function() {
191
191
} ;
192
192
plugin . beforeHook ( context ) ;
193
193
} ) ;
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 ( ) {
195
195
plugin . configure ( context ) ;
196
196
var messages = mockUi . messages . reduce ( function ( previous , current ) {
197
197
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() {
200
200
201
201
return previous ;
202
202
} , [ ] ) ;
203
- assert . equal ( messages . length , 6 ) ;
203
+ assert . equal ( messages . length , 7 ) ;
204
204
} ) ;
205
205
it ( 'does not add default config to the config object' , function ( ) {
206
206
plugin . configure ( context ) ;
@@ -230,7 +230,7 @@ describe('redis plugin', function() {
230
230
} ;
231
231
plugin . beforeHook ( context ) ;
232
232
} ) ;
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 ( ) {
234
234
plugin . configure ( context ) ;
235
235
var messages = mockUi . messages . reduce ( function ( previous , current ) {
236
236
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() {
239
239
240
240
return previous ;
241
241
} , [ ] ) ;
242
- assert . equal ( messages . length , 5 ) ;
242
+ assert . equal ( messages . length , 6 ) ;
243
243
} ) ;
244
244
245
245
it ( 'does not add default config to the config object' , function ( ) {
@@ -272,7 +272,8 @@ describe('redis plugin', function() {
272
272
config : {
273
273
redis : {
274
274
keyPrefix : 'test-prefix' ,
275
- filePattern : 'tests/index.html' ,
275
+ filePattern : 'index.html' ,
276
+ distDir : 'tests' ,
276
277
revisionKey : '123abc' ,
277
278
redisDeployClient : function ( context ) {
278
279
return context . redisClient || new Redis ( context . config . redis ) ;
@@ -309,7 +310,8 @@ describe('redis plugin', function() {
309
310
config : {
310
311
redis : {
311
312
keyPrefix : 'test-prefix' ,
312
- filePattern : 'tests/index.html' ,
313
+ filePattern : 'index.html' ,
314
+ distDir : 'tests' ,
313
315
revisionKey : '123abc' ,
314
316
redisDeployClient : function ( context ) { return context . redisClient ; }
315
317
}
@@ -340,7 +342,8 @@ describe('redis plugin', function() {
340
342
config : {
341
343
redis : {
342
344
keyPrefix : 'test-prefix' ,
343
- filePattern : 'tests/index.html' ,
345
+ filePattern : 'index.html' ,
346
+ distDir : 'tests' ,
344
347
revisionKey : '123abc' ,
345
348
redisDeployClient : function ( context ) {
346
349
return context . redisClient || new Redis ( context . config . redis ) ;
@@ -391,7 +394,7 @@ describe('redis plugin', function() {
391
394
plugin . didDeploy ( context ) ;
392
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 ./ ) ;
393
396
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 / ) ;
395
398
} ) ;
396
399
} ) ;
397
400
} ) ;
0 commit comments