Sha256: 5166fa53061110f919d3ec12606040c781347066c7c88d8b203201ad8ea2d7fb

Contents?: true

Size: 834 Bytes

Versions: 22

Compression:

Stored size: 834 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.blacklight_config,
      available_view_fields: { some_view_type: 1, another_view_type: 2 },
      select_deselect_button: nil
    )
    allow(controller).to receive(:enabled_in_spotlight_view_type_configuration?).and_return(true)
  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

22 entries across 22 versions & 1 rubygems

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