Sha256: ea12ba266ac4c51fe8617e78cd70dff88e613a0f812d82efc72d1ae4250514a2
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
require 'spec_helper' describe CommonwealthVlrEngine::ControllerOverride do class ControllerOverrideTestClass < CatalogController #include CommonwealthVlrEngine::ControllerOverride end before { @obj = ControllerOverrideTestClass.new } describe 'search_params_logic' do it 'should have exclude_unwanted_models included' do expect(@obj.search_params_logic).to include(:exclude_unwanted_models) end it 'should have exclude_unpublished_items included' do expect(@obj.search_params_logic).to include(:exclude_unpublished_items) end end describe 'search_builder_class' do it 'should have CommonwealthSearchBuilder included' do expect(@obj.blacklight_config.search_builder_class).to include(CommonwealthVlrEngine::CommonwealthSearchBuilder) end end describe 'add_institution_fields' do # this spec needs more work. not sure how to set appropriate institution stuff so it will pass # subject { @obj.send(:add_institution_fields) } ## not sure if I should use this?? it 'should add institution facets to the blacklight_config' #do # expect(@obj.blacklight_config.facet_fields).to include('physical_location_ssim') #end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
commonwealth-vlr-engine-0.0.1 | spec/lib/commonwealth-vlr-engine/controller_override_spec.rb |