diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-07 18:10:17 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-07 18:10:17 +0300 |
commit | 61d62a296064e0330cffec7ed4b7914371b4984b (patch) | |
tree | 4f77ac3d2e272f0283ac2156e9b68b262ac19fa4 /spec/helpers | |
parent | 5958e399de2e45d509f25b9c84b0a4d7bafa41a1 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/helpers')
-rw-r--r-- | spec/helpers/application_helper_spec.rb | 13 |
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' } |