Sha256: c9dee83c520c7e5fa0cf13f53fdb1aff1f11c4a32e1b47fe2ade13537cabb026
Contents?: true
Size: 565 Bytes
Versions: 27
Compression:
Stored size: 565 Bytes
Contents
require 'spec_helper' describe Spotlight::AboutPage, type: :model do let(:page) { described_class.create! exhibit: FactoryGirl.create(:exhibit) } it { is_expected.not_to be_feature_page } it { is_expected.to be_about_page } it 'displays the sidebar' do expect(page.display_sidebar?).to be_truthy end it 'forces the sidebar to display (we do not provide an interface for setting this to false)' do expect(page.display_sidebar?).to be_truthy page.display_sidebar = false page.save expect(page.display_sidebar?).to be_truthy end end
Version data entries
27 entries across 27 versions & 1 rubygems