Commit e0539ecc authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'json-cop-autocorrects-additional' into 'master'

Additional Gitlab/Json autocorrects

See merge request gitlab-org/gitlab!31008
parents f382296c 3f363786
......@@ -97,7 +97,7 @@ RSpec.shared_examples 'gets registries for' do |args|
# Get second page
post_graphql(query("first: 2, after: \"#{end_cursor}\""), current_user: current_user)
response_data = JSON.parse(response.body).dig('data', 'geoNode', GraphqlHelpers.fieldnamerize(field_name), 'edges')
response_data = Gitlab::Json.parse(response.body).dig('data', 'geoNode', GraphqlHelpers.fieldnamerize(field_name), 'edges')
first_result = response_data.first['node']
second_result = response_data.second['node']
......
......@@ -358,7 +358,7 @@ describe 'getting an issue list for a project' do
cursored_query = query("sort: LABEL_PRIORITY_ASC, after: \"#{end_cursor}\"")
post_graphql(cursored_query, current_user: current_user)
response_data = JSON.parse(response.body)['data']['project']['issues']['edges']
response_data = Gitlab::Json.parse(response.body)['data']['project']['issues']['edges']
expect(grab_iids(response_data)).to eq [label_issue2.iid, label_issue4.iid]
end
......@@ -380,7 +380,7 @@ describe 'getting an issue list for a project' do
cursored_query = query("sort: LABEL_PRIORITY_DESC, after: \"#{end_cursor}\"")
post_graphql(cursored_query, current_user: current_user)
response_data = JSON.parse(response.body)['data']['project']['issues']['edges']
response_data = Gitlab::Json.parse(response.body)['data']['project']['issues']['edges']
expect(grab_iids(response_data)).to eq [label_issue1.iid, label_issue4.iid]
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment