Sha256: 342b59e962b2a24e3c54f38897826a922d449013df5d863dc11f49b5d0ee6802

Contents?: true

Size: 686 Bytes

Versions: 24

Compression:

Stored size: 686 Bytes

Contents

describe 'spotlight/metadata_configurations/edit', type: :view do
  let(:exhibit) { FactoryBot.create(:exhibit) }
  before do
    assign(:exhibit, exhibit)
    assign(:blacklight_configuration, exhibit.blacklight_configuration)
    allow(view).to receive_messages(
      current_exhibit: exhibit,
      blacklight_config: exhibit.blacklight_configuration,
      available_view_fields: { some_view_type: 1, another_view_type: 2 },
      select_deselect_button: nil
    )
  end

  it 'has columns for the available view types' do
    render
    expect(rendered).to have_selector 'th', text: 'Some View Type'
    expect(rendered).to have_selector 'th', text: 'Another View Type'
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
blacklight-spotlight-2.4.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.4.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.3.3 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.3.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.3.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.3.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.2.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.2.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.1.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc6 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc5 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc4 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc3 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.0.0.rc1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-1.5.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-1.4.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb