summaryrefslogtreecommitdiff
path: root/spec/initializers
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-13 18:10:04 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-13 18:10:04 +0000
commit04befb368f4b170ce19bb2c7c8739baa08b04a0a (patch)
treec3e7466f95c9757fe2a21ebc1ed6e91ea80d5369 /spec/initializers
parentaadb3204eaf8b5912e262cd19fed34fc70789e95 (diff)
downloadgitlab-ce-04befb368f4b170ce19bb2c7c8739baa08b04a0a.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/initializers')
-rw-r--r--spec/initializers/countries_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/initializers/countries_spec.rb b/spec/initializers/countries_spec.rb
new file mode 100644
index 00000000000..2b968e41322
--- /dev/null
+++ b/spec/initializers/countries_spec.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+RSpec.describe 'countries', feature_category: :onboarding do
+ it 'configures locals to EN' do
+ expect(ISO3166.configuration.locales).to eq([:en])
+ end
+
+ it 'initialises Ukraine with custom country name' do
+ expect(ISO3166::Country['UA'].data["name"]).to be('Ukraine (except the Crimea, Donetsk, and Luhansk regions)')
+ end
+
+ it 'initialises Taiwan with custom country name' do
+ expect(ISO3166::Country['TW'].data["name"]).to be('Taiwan')
+ end
+end