Sha256: a0e9afbf2053d47b05f384ce25829913fc47a3df055e5ca1c1a71b8074155525

Contents?: true

Size: 687 Bytes

Versions: 32

Compression:

Stored size: 687 Bytes

Contents

describe 'spotlight/metadata_configurations/edit', type: :view do
  let(:exhibit) { FactoryGirl.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

32 entries across 32 versions & 1 rubygems

Version Path
blacklight-spotlight-1.0.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-1.0.0.alpha1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.34.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.34.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.33.3 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.33.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.33.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.33.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.32.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.31.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.30.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.29.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.29.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.28.3 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.28.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.28.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.28.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.27.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.26.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb