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:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-20 21:42:06 +0300
commit6e4e1050d9dba2b7b2523fdd1768823ab85feef4 (patch)
tree78be5963ec075d80116a932011d695dd33910b4e /spec/helpers/application_helper_spec.rb
parent1ce776de4ae122aba3f349c02c17cebeaa8ecf07 (diff)
Add latest changes from gitlab-org/gitlab@13-3-stable-ee
Diffstat (limited to 'spec/helpers/application_helper_spec.rb')
-rw-r--r--spec/helpers/application_helper_spec.rb36
1 files changed, 36 insertions, 0 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index 08107b841d7..ce4e73bdc55 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -168,6 +168,42 @@ RSpec.describe ApplicationHelper do
it { expect(helper.active_when(false)).to eq(nil) }
end
+ describe '#promo_host' do
+ subject { helper.promo_host }
+
+ it 'returns the url' do
+ is_expected.to eq('about.gitlab.com')
+ end
+ end
+
+ describe '#promo_url' do
+ subject { helper.promo_url }
+
+ it 'returns the url' do
+ is_expected.to eq('https://about.gitlab.com')
+ end
+
+ it 'changes if promo_host changes' do
+ allow(helper).to receive(:promo_host).and_return('foobar.baz')
+
+ is_expected.to eq('https://foobar.baz')
+ end
+ end
+
+ describe '#contact_sales_url' do
+ subject { helper.contact_sales_url }
+
+ it 'returns the url' do
+ is_expected.to eq('https://about.gitlab.com/sales')
+ end
+
+ it 'changes if promo_url changes' do
+ allow(helper).to receive(:promo_url).and_return('https://somewhere.else')
+
+ is_expected.to eq('https://somewhere.else/sales')
+ end
+ end
+
describe '#support_url' do
context 'when alternate support url is specified' do
let(:alternate_url) { 'http://company.example.com/getting-help' }