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

Version Path
blacklight-spotlight-2.0.2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.5.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.4.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.4.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.3.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.2.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-1.1.0 spec/views/spotlight/pages/_form.html.erb_spec.rb