Sha256: 5af649703b9832e8f7500f0966bb388341ff7740d041934b1bfb9dd6a13a04e4
Contents?: true
Size: 513 Bytes
Versions: 27
Compression:
Stored size: 513 Bytes
Contents
require 'spec_helper' module Spotlight describe 'shared/_analytics', type: :view do it 'is empty without Google Analytics configured' do render expect(rendered).to be_empty end it 'renders the GA script tag if the web property id is configured' do allow(Spotlight::Engine.config).to receive(:ga_web_property_id).and_return('XYZ-234') render expect(rendered).to have_selector 'script', visible: false expect(rendered).to have_content 'XYZ-234' end end end
Version data entries
27 entries across 27 versions & 1 rubygems