Sha256: 2eda6d18588c1de48a14b85563d6fefc3e7ab59cfbc959435e041653a8a1b486
Contents?: true
Size: 885 Bytes
Versions: 3
Compression:
Stored size: 885 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 "should include analytics reporting" do stub_template "shared/_analytics.html.erb" => "analytics" render expect(rendered).to have_content "analytics" end it "should display 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
3 entries across 3 versions & 1 rubygems