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