Skip to content

Commit

Permalink
Fix rubocop issues
Browse files Browse the repository at this point in the history
Signed-off-by: Edwin Xie <exie@pivotal.io>
  • Loading branch information
Shash Reddy authored and flawedmatrix committed Jul 25, 2016
1 parent 7eab09e commit 5266e93
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app/controllers/runtime/routes_controller.rb
Expand Up @@ -317,7 +317,7 @@ def validated_router_group
@router_group ||=
begin
router_group = routing_api_client.router_group(validated_domain.router_group_guid)
raise CloudController::Errors::ApiError.new_from_details('RouterGroupNotFound', "#{validated_domain.router_group_guid} could not be found") if router_group.nil?
raise CloudController::Errors::ApiError.new_from_details('RouterGroupNotFound', "#{validated_domain.router_group_guid} could not be found") if router_group.nil?
router_group
rescue RoutingApi::RoutingApiDisabled
raise CloudController::Errors::ApiError.new_from_details('TcpRoutingDisabled')
Expand Down
10 changes: 5 additions & 5 deletions spec/unit/controllers/runtime/routes_controller_spec.rb
Expand Up @@ -625,13 +625,13 @@ module VCAP::CloudController
port: 1234,
} }

it 'returns a 404' do
post '/v2/routes', MultiJson.dump(req)
it 'returns a 404' do
post '/v2/routes', MultiJson.dump(req)

expect(last_response).to have_status_code(404)
expect(last_response.body).to include 'router group could not be found'
end
expect(last_response).to have_status_code(404)
expect(last_response.body).to include 'router group could not be found'
end
end

context 'when random port is provided' do
let(:req) { {
Expand Down

0 comments on commit 5266e93

Please sign in to comment.