Sha256: bb4f9e4365f3f249f34e884b49f36ff3c0d14ba01ee7d29578823e1176b02d7a
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true describe Spotlight::Analytics::Ga do it 'does not be enabled without configuration' do expect(subject.enabled?).to be_falsey end describe '#site' do it 'selects the correct profile based on the web property id' do allow(Spotlight::Engine.config).to receive_messages(ga_web_property_id: 'bar') allow(subject).to receive_message_chain( :user, :accounts, :first, profiles: [ double('profile1', web_property_id: 'foo'), double('profile2', web_property_id: 'bar') ] ) expect(subject.site.web_property_id).to eq 'bar' end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-spotlight-3.0.0.alpha.2 | spec/models/spotlight/analytics/ga_spec.rb |
blacklight-spotlight-3.0.0.alpha.1 | spec/models/spotlight/analytics/ga_spec.rb |