Use array syntax instead of dig for consistency

We are using hash[symbol][symbol] everywhere else in the test file.
This commit is contained in:
Steve Azzopardi 2018-10-31 11:53:39 +01:00
parent 8f36f1cad2
commit 6d6767c201
No known key found for this signature in database
GPG Key ID: 605BD4706E7DB47D
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ describe Projects::JobsController, :clean_gitlab_redis_shared_state do
expect(response).to have_gitlab_http_status(:ok)
expect(response).to match_response_schema('job/job_details')
expect(json_response['raw_path']).to match(%r{jobs/\d+/raw\z})
expect(json_response.dig('merge_request', 'path')).to match(%r{merge_requests/\d+\z})
expect(json_response['merge_request']['path']).to match(%r{merge_requests/\d+\z})
expect(json_response['new_issue_path']).to include('/issues/new')
end
end