Skip to content

Commit 586999d

Browse files
committed
fix formatting
1 parent 0eb58ef commit 586999d

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

app/controllers/v3/service_instances_controller.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,8 @@ def unprocessable_service_plan!
436436
end
437437

438438
def unavailable_service_plan!(service_plan)
439-
unprocessable!("Invalid service plan. The service plan #{service_plan} has been removed from the service broker's catalog. It is not possible to create new service instances using this plan.")
439+
unprocessable!("Invalid service plan. The service plan #{service_plan} has been removed from the service broker's catalog." \
440+
'It is not possible to create new service instances using this plan.')
440441
end
441442

442443
def service_plan_not_visible_in_space!

spec/request/service_instances_spec.rb

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1276,7 +1276,8 @@ def check_filtered_instances(*instances)
12761276
expect(last_response).to have_status_code(422)
12771277
expect(parsed_response['errors']).to include(
12781278
include({
1279-
'detail' => "Invalid service plan. The service plan #{service_plan.name} has been removed from the service broker\'s catalog. It is not possible to create new service instances using this plan.",
1279+
'detail' => "Invalid service plan. The service plan #{service_plan.name} has been removed from the service broker's catalog." \
1280+
'It is not possible to create new service instances using this plan.',
12801281
'title' => 'CF-UnprocessableEntity',
12811282
'code' => 10_008
12821283
})
@@ -2413,7 +2414,8 @@ def check_filtered_instances(*instances)
24132414
expect(last_response).to have_status_code(422)
24142415
expect(parsed_response['errors']).to include(
24152416
include({
2416-
'detail' => "Invalid service plan. The service plan #{service_plan.name} has been removed from the service broker\'s catalog. It is not possible to create new service instances using this plan.",
2417+
'detail' => "Invalid service plan. The service plan #{service_plan.name} has been removed from the service broker's catalog." \
2418+
'It is not possible to create new service instances using this plan.',
24172419
'title' => 'CF-UnprocessableEntity',
24182420
'code' => 10_008
24192421
})

0 commit comments

Comments
 (0)