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

Version Path
blacklight-spotlight-3.0.0.alpha.2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.13.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.12.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.12.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.11.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.10.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.9.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.8.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.7.2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.7.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.7.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.6.1.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.6.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.6.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.5.2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.5.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.5.0 spec/views/spotlight/pages/_form.html.erb_spec.rb