Skip to content

Commit 5fe5c4c

Browse files
committed
adjust test for manifest push:
options {key:nil} should not modify the existing value
1 parent 35d8b72 commit 5fe5c4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/request/space_manifests_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@
769769
expect(app1_model.routes.first.options).to eq({ 'lb_algo' => 'round-robin' })
770770
end
771771

772-
it 'removes a specific route option when options: { key: nil } is provided' do
772+
it 'does not modify any option when options: { key: nil } is provided' do
773773
yml_manifest = {
774774
'applications' => [
775775
{ 'name' => app1_model.name,
@@ -791,7 +791,7 @@
791791
Delayed::Worker.new.work_off
792792
expect(VCAP::CloudController::PollableJobModel.find(guid: job_guid)).to be_complete, VCAP::CloudController::PollableJobModel.find(guid: job_guid).cf_api_error
793793
app1_model.reload
794-
expect(app1_model.routes.first.options).to eq({})
794+
expect(app1_model.routes.first.options).to eq({ 'lb_algo' => 'round-robin' })
795795
end
796796
end
797797

0 commit comments

Comments
 (0)