Sha256: 03a97b6505f545eb97429f41a0ab804e52a7b93d30bad187290ec4823df8b529

Contents?: true

Size: 813 Bytes

Versions: 40

Compression:

Stored size: 813 Bytes

Contents

# frozen_string_literal: true

describe 'spotlight/sites/edit_exhibits', type: :view do
  let!(:exhibit_a) { FactoryBot.create(:exhibit) }
  let!(:exhibit_b) { FactoryBot.create(:exhibit) }

  before do
    assign(:site, Spotlight::Site.instance)
    allow(view).to receive_messages(exhibit_path: nil)
  end

  it 'has columns for the exhibit data' do
    render
    expect(rendered).to have_selector 'th', text: 'Title'
    expect(rendered).to have_selector 'th', text: 'Published?'
    expect(rendered).to have_selector 'th', text: 'Requested by'
    expect(rendered).to have_selector 'th', text: 'Created at'
    expect(rendered).to have_selector 'th', text: 'Updated at'
  end

  it 'has draggable rows for each exhibit' do
    render
    expect(rendered).to have_selector 'tr .dd-handle', count: 2
  end
end

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
blacklight-spotlight-3.4.0 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.3.0 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.2.0 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.1.0 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.3 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.2 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.1 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc6 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc5 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc4 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc3 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc2 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.rc1 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.10 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.9 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.8 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.7 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.6 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb
blacklight-spotlight-3.0.0.alpha.5 spec/views/spotlight/sites/edit_exhibits.html.erb_spec.rb