Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/initializers/countries_spec.rb')
-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