Commit 2c55b3bd authored by charlieablett's avatar charlieablett

Use json_response method

parent e19fdf8a
......@@ -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