@@ -312,7 +312,7 @@ def manifest_with_errand(deployment_name='errand')
312312 it 'does not skip draining' do
313313 expect_any_instance_of ( DeploymentManager )
314314 . to receive ( :create_deployment )
315- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_excluding ( 'skip_drain' ) , anything ( ) )
315+ . with ( anything , anything , anything , anything , anything , hash_excluding ( 'skip_drain' ) , anything )
316316 . and_return ( OpenStruct . new ( :id => 1 ) )
317317 post '/' , spec_asset ( 'test_conf.yaml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
318318 expect ( last_response ) . to be_redirect
@@ -323,7 +323,7 @@ def manifest_with_errand(deployment_name='errand')
323323 it 'skips draining' do
324324 expect_any_instance_of ( DeploymentManager )
325325 . to receive ( :create_deployment )
326- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_including ( 'skip_drain' => '*' ) , anything ( ) )
326+ . with ( anything , anything , anything , anything , anything , hash_including ( 'skip_drain' => '*' ) , anything )
327327 . and_return ( OpenStruct . new ( :id => 1 ) )
328328 post '/?skip_drain=*' , spec_asset ( 'test_conf.yaml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
329329 expect ( last_response ) . to be_redirect
@@ -334,7 +334,7 @@ def manifest_with_errand(deployment_name='errand')
334334 it 'skips draining' do
335335 expect_any_instance_of ( DeploymentManager )
336336 . to receive ( :create_deployment )
337- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_including ( 'skip_drain' => 'job_one,job_two' ) , anything ( ) )
337+ . with ( anything , anything , anything , anything , anything , hash_including ( 'skip_drain' => 'job_one,job_two' ) , anything )
338338 . and_return ( OpenStruct . new ( :id => 1 ) )
339339 post '/?skip_drain=job_one,job_two' , spec_asset ( 'test_conf.yaml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
340340 expect ( last_response ) . to be_redirect
@@ -345,7 +345,7 @@ def manifest_with_errand(deployment_name='errand')
345345 it 'passes the parameter' do
346346 expect_any_instance_of ( DeploymentManager )
347347 . to receive ( :create_deployment )
348- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_including ( 'fix' => true ) , anything ( ) )
348+ . with ( anything , anything , anything , anything , anything , hash_including ( 'fix' => true ) , anything )
349349 . and_return ( OpenStruct . new ( :id => 1 ) )
350350 post '/?fix=true' , spec_asset ( 'test_conf.yaml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
351351 expect ( last_response ) . to be_redirect
@@ -396,7 +396,7 @@ def manifest_with_errand(deployment_name='errand')
396396 it 'calls create deployment with deployment name' do
397397 expect_any_instance_of ( DeploymentManager )
398398 . to receive ( :create_deployment )
399- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , deployment , hash_excluding ( 'skip_drain' ) , anything ( ) )
399+ . with ( anything , anything , anything , anything , deployment , hash_excluding ( 'skip_drain' ) , anything )
400400 . and_return ( OpenStruct . new ( :id => 1 ) )
401401 post '/' , spec_asset ( 'test_manifest.yml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
402402 expect ( last_response ) . to be_redirect
@@ -407,15 +407,15 @@ def manifest_with_errand(deployment_name='errand')
407407 it 'to false' do
408408 expect_any_instance_of ( DeploymentManager )
409409 . to receive ( :create_deployment )
410- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , deployment , hash_including ( 'new' => false ) , anything ( ) )
410+ . with ( anything , anything , anything , anything , deployment , hash_including ( 'new' => false ) , anything )
411411 . and_return ( OpenStruct . new ( :id => 1 ) )
412412 post '/' , spec_asset ( 'test_manifest.yml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
413413 end
414414
415415 it 'to true' do
416416 expect_any_instance_of ( DeploymentManager )
417417 . to receive ( :create_deployment )
418- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_including ( 'new' => true ) , anything ( ) )
418+ . with ( anything , anything , anything , anything , anything , hash_including ( 'new' => true ) , anything )
419419 . and_return ( OpenStruct . new ( :id => 1 ) )
420420 Models ::Deployment . first . delete
421421 post '/' , spec_asset ( 'test_manifest.yml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
@@ -426,7 +426,7 @@ def manifest_with_errand(deployment_name='errand')
426426 it 'passes the parameter' do
427427 expect_any_instance_of ( DeploymentManager )
428428 . to receive ( :create_deployment )
429- . with ( anything ( ) , anything ( ) , anything ( ) , anything ( ) , anything ( ) , hash_including ( 'force_latest_variables' => true ) , anything ( ) )
429+ . with ( anything , anything , anything , anything , anything , hash_including ( 'force_latest_variables' => true ) , anything )
430430 . and_return ( OpenStruct . new ( :id => 1 ) )
431431 post '/?force_latest_variables=true' , spec_asset ( 'test_conf.yaml' ) , { 'CONTENT_TYPE' => 'text/yaml' }
432432 expect ( last_response ) . to be_redirect
0 commit comments