Commit ba2f4de9 authored by Mao Chao's avatar Mao Chao Committed by Lin Jen-Shin

Add World.prepend_mod to allow JH override

Changelog: other
EE: true
parent 5057bc17
......@@ -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