Commit 3d227998 authored by Jarka Košanová's avatar Jarka Košanová

Merge branch 'cablett-json-response' into 'master'

Use json_response method

See merge request gitlab-org/gitlab!25775
parents a7b7ba36 2c55b3bd
......@@ -17,7 +17,7 @@ describe CountriesController do
get :index
# response is returned as [["Afghanistan", "AF"], ["Albania", "AL"], ..]
resultant_countries = JSON.parse(response.body).map {|row| row[0]}
resultant_countries = json_response.map {|row| row[0]}
expect(resultant_countries).not_to include(World::DENYLIST)
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