Sha256: bcd7e97268dc673e3c7546720c76df9d432111862b2ffc9b394752f481cd02de
Contents?: true
Size: 621 Bytes
Versions: 18
Compression:
Stored size: 621 Bytes
Contents
# frozen_string_literal: true 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(configurations_for_current_page: {}, 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
18 entries across 18 versions & 1 rubygems