Sha256: dc72c66a79f84dcd413479c468f7dd92c603a46fab1454b6be0dd9142b68cf74
Contents?: true
Size: 869 Bytes
Versions: 26
Compression:
Stored size: 869 Bytes
Contents
require 'spec_helper' module Spotlight describe 'shared/_footer', type: :view do let(:current_exhibit) { double(title: 'Some title', subtitle: 'Subtitle') } before do allow(view).to receive_messages(current_exhibit: current_exhibit) end it 'includes analytics reporting' do stub_template 'shared/_analytics.html.erb' => 'analytics' render expect(rendered).to have_content 'analytics' end it 'displays social media links' do render expect(rendered).to have_selector('footer .social-share-button a.social-share-button-twitter[title="Twitter"]') expect(rendered).to have_selector('footer .social-share-button a.social-share-button-facebook[title="Facebook"]') expect(rendered).to have_selector('footer .social-share-button a.social-share-button-google_plus[title="Google+"]') end end end
Version data entries
26 entries across 26 versions & 1 rubygems