Sha256: 15638afaef1a6529fd9aa36999d30a4099cd3ed7fd28b8d80345661ca6d97177

Contents?: true

Size: 582 Bytes

Versions: 4

Compression:

Stored size: 582 Bytes

Contents

require 'spec_helper'

describe Spotlight::AboutPage, :type => :model do
  let(:page) { Spotlight::AboutPage.create! exhibit: FactoryGirl.create(:exhibit)  }
  it {is_expected.not_to be_feature_page}
  it {is_expected.to be_about_page}
  it "should display the sidebar" do
    expect(page.display_sidebar?).to be_truthy
  end
  it "should force 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

4 entries across 4 versions & 1 rubygems

Version Path
blacklight-spotlight-0.4.1 spec/models/spotlight/about_page_spec.rb
blacklight-spotlight-0.3.1 spec/models/spotlight/about_page_spec.rb
blacklight-spotlight-0.3.0 spec/models/spotlight/about_page_spec.rb
blacklight-spotlight-0.2.0 spec/models/spotlight/about_page_spec.rb