Sha256: 912d5640efb89062f8f75fdd44155748129bc2f586d7420354ca3a228698f85f
Contents?: true
Size: 717 Bytes
Versions: 15
Compression:
Stored size: 717 Bytes
Contents
describe 'spotlight/pages/edit', type: :view do let(:exhibit) { stub_model(Spotlight::Exhibit) } let(:page) { stub_model(Spotlight::FeaturePage, exhibit: exhibit) } let :blacklight_config do Blacklight::Configuration.new end before do assign(:page, page) allow(view).to receive_messages(blacklight_config: blacklight_config, available_index_fields: [], available_view_fields: [], featured_images_path: '/foo') end it 'contains data-block-types attribute needed for SirTrevor instantiation' do render expect(rendered).to have_css '.js-st-instance[data-block-types]' end end
Version data entries
15 entries across 15 versions & 1 rubygems