Sha256: 809458b6dd6990ade93178c531943f49cbeaa4e3c6c54642cf420063eb7b554f

Contents?: true

Size: 717 Bytes

Versions: 16

Compression:

Stored size: 717 Bytes

Contents

# frozen_string_literal: true

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

16 entries across 16 versions & 1 rubygems

Version Path
blacklight-spotlight-2.13.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.12.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.12.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.11.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.10.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.9.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.8.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.7.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.7.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.7.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.6.1.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.6.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.6.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.5.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.5.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-2.5.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb