Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
ba2f4de9
Commit
ba2f4de9
authored
Jan 26, 2022
by
Mao Chao
Committed by
Lin Jen-Shin
Jan 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add World.prepend_mod to allow JH override
Changelog: other EE: true
parent
5057bc17
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
ee/lib/world.rb
ee/lib/world.rb
+2
-0
ee/spec/controllers/countries_controller_spec.rb
ee/spec/controllers/countries_controller_spec.rb
+2
-2
No files found.
ee/lib/world.rb
View file @
ba2f4de9
...
...
@@ -31,3 +31,5 @@ module World
ISO3166
::
Country
[
alpha2
]
&
.
alpha3
end
end
World
.
prepend_mod
ee/spec/controllers/countries_controller_spec.rb
View file @
ba2f4de9
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment