Sha256: 999ba90bca38d1d60a467e9789307056d0199566c372d7666d3e46cebc37011f
Contents?: true
Size: 646 Bytes
Versions: 22
Compression:
Stored size: 646 Bytes
Contents
# frozen_string_literal: true describe Spotlight::Analytics::Ga do it 'does not be enabled without configuration' do expect(subject).not_to be_enabled 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
22 entries across 22 versions & 1 rubygems