Skip to content
This repository was archived by the owner on Jun 2, 2021. It is now read-only.

Commit f56021c

Browse files
Derik EvangelistaFelisiaM
authored andcommitted
Update service_instances_spec.rb
1 parent 131a354 commit f56021c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

spec/request/service_instances_spec.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3462,20 +3462,20 @@ def check_filtered_instances(*instances)
34623462
expect(event.metadata['target_space_guid']).to eq(target_space.guid)
34633463
end
34643464

3465-
describe 'unbind from all apps in target space' do
3465+
describe 'when there are bindings in the shared space' do
34663466
let(:app_1) { VCAP::CloudController::AppModel.make(space: target_space) }
34673467
let(:app_2) { VCAP::CloudController::AppModel.make(space: target_space) }
34683468

34693469
let(:binding_1) { VCAP::CloudController::ServiceBinding.make(service_instance: service_instance, app: app_1) }
34703470
let(:binding_2) { VCAP::CloudController::ServiceBinding.make(service_instance: service_instance, app: app_2) }
34713471

3472-
context 'when bindings in shared space were deleted successfully' do
3472+
context 'and the bindings can be deleted synchronously' do
34733473
before do
34743474
stub_unbind(binding_1, accepts_incomplete: true, status: 200, body: {}.to_json)
34753475
stub_unbind(binding_2, accepts_incomplete: true, status: 200, body: {}.to_json)
34763476
end
34773477

3478-
it 'unbinds from all apps in target space and unshares' do
3478+
it 'deletes all bindings and successfully unshares' do
34793479
api_call.call(space_dev_headers)
34803480

34813481
expect(last_response.status).to eq(204)
@@ -3486,13 +3486,13 @@ def check_filtered_instances(*instances)
34863486
end
34873487
end
34883488

3489-
context 'when a binding in shared space is deleted async' do
3489+
context 'but the bindings can only be deleted asynchronously' do
34903490
before do
34913491
stub_unbind(binding_1, accepts_incomplete: true, status: 202, body: {}.to_json)
34923492
stub_unbind(binding_2, accepts_incomplete: true, status: 200, body: {}.to_json)
34933493
end
34943494

3495-
it 'should respond with 502 and it does not unshare' do
3495+
it 'responds with 502 and does not unshare' do
34963496
api_call.call(space_dev_headers)
34973497

34983498
expect(last_response.status).to eq(502)

0 commit comments

Comments
 (0)