Sha256: 8d70a038b6d9f477a4f21dc4c11f3da0eab4e31258c4e9615d991f063d0a3961
Contents?: true
Size: 622 Bytes
Versions: 22
Compression:
Stored size: 622 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
22 entries across 22 versions & 1 rubygems