Sha256: 01558935b00a19437b8fa984ba07fa2a56d284b914154532d966fa8f1d954c3c

Contents?: true

Size: 729 Bytes

Versions: 8

Compression:

Stored size: 729 Bytes

Contents

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.ssb-icon[title="Twitter"]')
    expect(rendered).to have_selector('footer .social-share-button a.ssb-icon[title="Facebook"]')
    expect(rendered).to have_selector('footer .social-share-button a.ssb-icon[title="Google+"]')
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
blacklight-spotlight-0.21.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.20.3 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.20.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.20.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.20.0 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.19.2 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.19.1 spec/views/shared/_footer.html.erb_spec.rb
blacklight-spotlight-0.19.0 spec/views/shared/_footer.html.erb_spec.rb