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