Sha256: d7858c01263ac6f9dfad9f00127bbbcdfa3a75c9fd652451b2452449206c5902

Contents?: true

Size: 590 Bytes

Versions: 9

Compression:

Stored size: 590 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(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

9 entries across 9 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.4.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.3.3 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.3.2 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.3.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.3.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.2.1 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.2.0 spec/views/spotlight/pages/_form.html.erb_spec.rb
blacklight-spotlight-2.1.0 spec/views/spotlight/pages/_form.html.erb_spec.rb