diff options
Diffstat (limited to 'spec/views/layouts/_head.html.haml_spec.rb')
-rw-r--r-- | spec/views/layouts/_head.html.haml_spec.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/views/layouts/_head.html.haml_spec.rb b/spec/views/layouts/_head.html.haml_spec.rb index 25fcbeb61df..d8748873f64 100644 --- a/spec/views/layouts/_head.html.haml_spec.rb +++ b/spec/views/layouts/_head.html.haml_spec.rb @@ -86,21 +86,21 @@ RSpec.describe 'layouts/_head' do end end - context 'when a Piwik config is set' do - let(:piwik_host) { 'piwik.example.com' } + context 'when a Matomo config is set' do + let(:matomo_host) { 'matomo.example.com' } before do stub_config(extra: { - piwik_url: piwik_host, - piwik_site_id: 12345 + matomo_url: matomo_host, + matomo_site_id: 12345 }) end - it 'add a Piwik Javascript' do + it 'add a Matomo Javascript' do render - expect(rendered).to match(/<script.*>.*var u="\/\/#{piwik_host}\/".*<\/script>/m) - expect(rendered).to match(%r(<noscript>.*<img src="//#{piwik_host}/piwik.php.*</noscript>)) + expect(rendered).to match(/<script.*>.*var u="\/\/#{matomo_host}\/".*<\/script>/m) + expect(rendered).to match(%r(<noscript>.*<img src="//#{matomo_host}/matomo.php.*</noscript>)) end end |