Sha256: 342b59e962b2a24e3c54f38897826a922d449013df5d863dc11f49b5d0ee6802
Contents?: true
Size: 686 Bytes
Versions: 24
Compression:
Stored size: 686 Bytes
Contents
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
24 entries across 24 versions & 1 rubygems