Sha256: bedd4f4d1252403cbd2a8a6d77c322aca94b8f9c503235f5ab34b82670711e86
Contents?: true
Size: 533 Bytes
Versions: 3
Compression:
Stored size: 533 Bytes
Contents
require 'spec_helper' module Spotlight describe "shared/_analytics", :type => :view do it "should be empty without Google Analytics configured" do render expect(rendered).to be_empty end it "should render 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
3 entries across 3 versions & 1 rubygems