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-07 18:10:17 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-08-07 18:10:17 +0300
commit61d62a296064e0330cffec7ed4b7914371b4984b (patch)
tree4f77ac3d2e272f0283ac2156e9b68b262ac19fa4 /spec/helpers
parent5958e399de2e45d509f25b9c84b0a4d7bafa41a1 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r--spec/helpers/application_helper_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/helpers/application_helper_spec.rb b/spec/helpers/application_helper_spec.rb
index 08107b841d7..3538fe98628 100644
--- a/spec/helpers/application_helper_spec.rb
+++ b/spec/helpers/application_helper_spec.rb
@@ -168,6 +168,19 @@ RSpec.describe ApplicationHelper do
it { expect(helper.active_when(false)).to eq(nil) }
end
+ describe '#contact_sales_url' do
+ subject { helper.contact_sales_url }
+
+ it 'passes a smoke test' 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' }