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

Version Path
blacklight-spotlight-0.17.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.17.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.16.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.15.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.14.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.14.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.14.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.13.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.12.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.12.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.11.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.10.3 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.10.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.10.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.10.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.9.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.9.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.9.0 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.8.2 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb
blacklight-spotlight-0.8.1 spec/views/spotlight/metadata_configurations/edit.html.erb_spec.rb