Sha256: 3249c16d2bc11aef3ec7811608cc27efd7eda3fe1b6a0f4b8f14dfdb82304f5f
Contents?: true
Size: 931 Bytes
Versions: 15
Compression:
Stored size: 931 Bytes
Contents
describe 'spotlight/dashboards/analytics.html.erb', type: :view do let(:current_exhibit) { FactoryBot.create(:exhibit) } before do allow(view).to receive_messages(current_exhibit: current_exhibit, exhibit_root_path: '/some/path') end it 'has a header' do render expect(rendered).to have_selector '.page-header', text: 'Curation' expect(rendered).to have_selector '.page-header small', text: 'Analytics' end it 'has directions for configuring analytics' do render expect(rendered).to have_link 'configure an analytics provider' end context 'with a configured analytics integration' do before do allow(Spotlight::Analytics::Ga).to receive(:enabled?).and_return(true) stub_template 'spotlight/dashboards/_analytics.html.erb' => 'Analytics data' end it 'has analytics data' do render expect(rendered).to have_content 'Analytics data' end end end
Version data entries
15 entries across 15 versions & 1 rubygems