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/helpers/appearances_helper_spec.rb')
-rw-r--r--spec/helpers/appearances_helper_spec.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/helpers/appearances_helper_spec.rb b/spec/helpers/appearances_helper_spec.rb
index 2206c1ce2ae..b3afd350397 100644
--- a/spec/helpers/appearances_helper_spec.rb
+++ b/spec/helpers/appearances_helper_spec.rb
@@ -169,4 +169,13 @@ RSpec.describe AppearancesHelper do
expect(helper.brand_title).to eq(helper.default_brand_title)
end
end
+
+ describe '#default_brand_title' do
+ it 'returns the default title' do
+ edition = Gitlab.ee? ? 'Enterprise' : 'Community'
+ expected_default_brand_title = "GitLab #{edition} Edition"
+
+ expect(helper.default_brand_title).to eq _(expected_default_brand_title)
+ end
+ end
end