summaryrefslogtreecommitdiff
path: root/spec/views/layouts/_head.html.haml_spec.rb
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-24 21:06:26 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-24 21:06:26 +0000
commit46bfa73d93786bc2a832be7e42e2119712a0bafb (patch)
treeda48cc5babc92871cda768a980042aeb061c5ace /spec/views/layouts/_head.html.haml_spec.rb
parentc4edbefa458319a81e238f8f034d19f6ea6292ca (diff)
downloadgitlab-ce-46bfa73d93786bc2a832be7e42e2119712a0bafb.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/views/layouts/_head.html.haml_spec.rb')
-rw-r--r--spec/views/layouts/_head.html.haml_spec.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/spec/views/layouts/_head.html.haml_spec.rb b/spec/views/layouts/_head.html.haml_spec.rb
index 41e685f185a..f181e18e53d 100644
--- a/spec/views/layouts/_head.html.haml_spec.rb
+++ b/spec/views/layouts/_head.html.haml_spec.rb
@@ -92,28 +92,6 @@ describe 'layouts/_head' do
end
end
- context 'when pendo is enabled' do
- it 'adds a pendo initialization snippet with url', :aggregate_failures do
- allow(Gitlab::CurrentSettings).to receive(:pendo_enabled?).and_return(true)
- allow(Gitlab::CurrentSettings).to receive(:pendo_url).and_return('www.pen.do')
-
- render
-
- expect(rendered).to match('pendo.initialize')
- expect(rendered).to match('www.pen.do')
- end
- end
-
- context 'when pendo is not enabled' do
- it 'do not add pendo snippet' do
- allow(Gitlab::CurrentSettings).to receive(:pendo_enabled?).and_return(false)
-
- render
-
- expect(rendered).not_to match('pendo.initialize')
- end
- end
-
context 'when a Piwik config is set' do
let(:piwik_host) { 'piwik.example.com' }