spec/controllers/institutions_controller_spec.rb in commonwealth-vlr-engine-0.0.1 vs spec/controllers/institutions_controller_spec.rb in commonwealth-vlr-engine-0.0.2
- old
+ new
@@ -59,6 +59,19 @@
expect(assigns(:document_list)).not_to be_nil
end
end
+ describe 'private methods and before_filters' do
+
+ describe 'institutions_index_config' do
+ it 'should set the appropriate blacklight_config properties' do
+ get :index
+ expect(controller.blacklight_config.search_builder_class).to eq(CommonwealthInstitutionsSearchBuilder)
+ expect(controller.blacklight_config.view.to_s).not_to include('gallery')
+ end
+
+ end
+
+ end
+
end
\ No newline at end of file