Sha256: 3960cb1681bb10b966879e32b6ea0fefebd0950f914784ac3f75a690a88f846a
Contents?: true
Size: 760 Bytes
Versions: 26
Compression:
Stored size: 760 Bytes
Contents
require 'spec_helper' module Spotlight 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 end
Version data entries
26 entries across 26 versions & 1 rubygems