Skip to content

Commit 7665514

Browse files
committed
set sp and sp name in quotes
1 parent 93828d8 commit 7665514

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

app/controllers/v3/service_instances_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -438,13 +438,13 @@ def unprocessable_service_plan!
438438
end
439439

440440
def unavailable_service_plan!(service_plan, service_plan_guid)
441-
unprocessable!("Invalid service plan. The service plan #{service_plan} with guid #{service_plan_guid} has been removed from the service broker's catalog." \
441+
unprocessable!("Invalid service plan. The service plan '#{service_plan}' with guid '#{service_plan_guid}' has been removed from the service broker's catalog." \
442442
'It is not possible to create new service instances using this plan.')
443443
end
444444

445445
def service_plan_not_visible_in_space!(service_plan, service_plan_guid, space_name, space_guid)
446-
unprocessable!("Invalid service plan. Ensure that the service plan #{service_plan} with guid #{service_plan_guid} \
447-
is visible in your current space #{space_name} with guid #{space_guid}.")
446+
unprocessable!("Invalid service plan. Ensure that the service plan '#{service_plan}' with guid '#{service_plan_guid}' \
447+
is visible in your current space '#{space_name}' with guid '#{space_guid}'.")
448448
end
449449

450450
def invalid_service_plan_relation!

spec/request/service_instances_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1260,8 +1260,8 @@ def check_filtered_instances(*instances)
12601260
expect(last_response).to have_status_code(422)
12611261
expect(parsed_response['errors']).to include(
12621262
include({
1263-
'detail' => "Invalid service plan. Ensure that the service plan #{service_plan.name} with \
1264-
guid #{service_plan_guid} is visible in your current space #{space.name} with guid #{space.guid}.",
1263+
'detail' => "Invalid service plan. Ensure that the service plan '#{service_plan.name}' with \
1264+
guid '#{service_plan_guid}' is visible in your current space '#{space.name}' with guid '#{space.guid}'.",
12651265
'title' => 'CF-UnprocessableEntity',
12661266
'code' => 10_008
12671267
})
@@ -1277,7 +1277,7 @@ def check_filtered_instances(*instances)
12771277
expect(last_response).to have_status_code(422)
12781278
expect(parsed_response['errors']).to include(
12791279
include({
1280-
'detail' => "Invalid service plan. The service plan #{service_plan.name} with guid #{service_plan.guid} " \
1280+
'detail' => "Invalid service plan. The service plan '#{service_plan.name}' with guid '#{service_plan.guid}' " \
12811281
"has been removed from the service broker's catalog." \
12821282
'It is not possible to create new service instances using this plan.',
12831283
'title' => 'CF-UnprocessableEntity',
@@ -2416,7 +2416,7 @@ def check_filtered_instances(*instances)
24162416
expect(last_response).to have_status_code(422)
24172417
expect(parsed_response['errors']).to include(
24182418
include({
2419-
'detail' => "Invalid service plan. The service plan #{service_plan.name} with guid #{service_plan.guid} " \
2419+
'detail' => "Invalid service plan. The service plan '#{service_plan.name}' with guid '#{service_plan.guid}' " \
24202420
"has been removed from the service broker's catalog." \
24212421
'It is not possible to create new service instances using this plan.',
24222422
'title' => 'CF-UnprocessableEntity',

0 commit comments

Comments
 (0)