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

Version Path
blacklight-spotlight-0.17.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.17.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.16.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.15.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.14.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.14.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.14.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.13.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.12.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.12.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.11.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.10.3 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.10.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.10.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.10.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.9.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.9.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.9.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.8.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.8.1 spec/views/shared/_footer.html.erb_spec.rb