Sha256: 8076707b13e688a6a51de65ea209ce1356a2014bc8b05956a8fdafd50a03ceaa
Contents?: true
Size: 833 Bytes
Versions: 2
Compression:
Stored size: 833 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
2 entries across 2 versions & 1 rubygems