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

Commit b261a7d

Browse files
FelisiaMpivotal-marcela-campo
authored andcommitted
Fix formatting
1 parent d29537c commit b261a7d

2 files changed

Lines changed: 12 additions & 13 deletions

File tree

app/controllers/v3/service_credential_bindings_controller.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def create
7878
return
7979
end
8080
rescue V3::ServiceCredentialBindingCreate::UnprocessableCreate,
81-
V3::ServiceCredentialBindingKeyCreate::UnprocessableCreate => e
81+
V3::ServiceCredentialBindingKeyCreate::UnprocessableCreate => e
8282
unprocessable!(e.message)
8383
end
8484

@@ -295,7 +295,6 @@ def operation_in_progress!
295295
unprocessable!('There is an operation in progress for the service instance.')
296296
end
297297

298-
299298
def not_found!
300299
resource_not_found!(:service_credential_binding)
301300
end

spec/request/service_credential_bindings_spec.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ def check_filtered_bindings(*bindings)
15431543
'title' => 'CF-UnprocessableEntity',
15441544
'code' => 10008,
15451545
}))
1546-
end
1546+
end
15471547

15481548
context 'when the service instance does not exist' do
15491549
let(:service_instance_guid) { 'fake-instance' }
@@ -1570,14 +1570,14 @@ def check_filtered_bindings(*bindings)
15701570
let(:space_dev_headers) { headers_for(space_user) }
15711571

15721572
it 'returns a 422' do
1573-
api_call.call space_dev_headers
1574-
expect(last_response).to have_status_code(422)
1575-
expect(parsed_response['errors']).to include(include({
1576-
'detail' => include("The service instance could not be found: '#{service_instance_guid}'"),
1577-
'title' => 'CF-UnprocessableEntity',
1578-
'code' => 10008,
1579-
}))
1580-
end
1573+
api_call.call space_dev_headers
1574+
expect(last_response).to have_status_code(422)
1575+
expect(parsed_response['errors']).to include(include({
1576+
'detail' => include("The service instance could not be found: '#{service_instance_guid}'"),
1577+
'title' => 'CF-UnprocessableEntity',
1578+
'code' => 10008,
1579+
}))
1580+
end
15811581
end
15821582

15831583
context 'when the service instance is user-provided' do
@@ -1604,7 +1604,7 @@ def check_filtered_bindings(*bindings)
16041604

16051605
expect(last_response).to have_status_code(422)
16061606
expect(parsed_response['errors']).to include(include({
1607-
'detail' => include("Service plan does not allow bindings."),
1607+
'detail' => include('Service plan does not allow bindings.'),
16081608
'title' => 'CF-UnprocessableEntity',
16091609
'code' => 10008,
16101610
}))
@@ -1620,7 +1620,7 @@ def check_filtered_bindings(*bindings)
16201620

16211621
expect(last_response).to have_status_code(422)
16221622
expect(parsed_response['errors']).to include(include({
1623-
'detail' => include("Service plan is not available."),
1623+
'detail' => include('Service plan is not available.'),
16241624
'title' => 'CF-UnprocessableEntity',
16251625
'code' => 10008,
16261626
}))

0 commit comments

Comments
 (0)