Commit 6bec28a4 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch 'override-world-all-country' into 'master'

Add World.prepend_mod to allow JH override

See merge request gitlab-org/gitlab!79098
parents 1c7c451a ba2f4de9
......@@ -31,3 +31,5 @@ module World
ISO3166::Country[alpha2]&.alpha3
end
end
World.prepend_mod
......@@ -19,8 +19,8 @@ RSpec.describe CountriesController do
# response is returned as [["Afghanistan", "AF"], ["Albania", "AL"], ..]
resultant_countries = json_response.map {|row| row[0]}
expect(resultant_countries).not_to include(World::DENYLIST)
expect(resultant_countries).not_to include(World::JH_MARKET)
expect(resultant_countries).not_to include(*World::DENYLIST)
expect(resultant_countries).not_to include(*World::JH_MARKET)
end
end
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