Sha256: 05a9869fe40d5b8aae3afcf96b429ca3da2671e59a241f3f575eb5bf902e6030
Contents?: true
Size: 635 Bytes
Versions: 1
Compression:
Stored size: 635 Bytes
Contents
require 'spec_helper' describe 'Blacklight highlighting' do use_vcr_cassette "solr" before do CatalogController.configure_blacklight do |config| config.index.show_link = 'title_display' config.default_solr_params = { :per_page => 10 } config.add_index_field 'field' config.add_index_field 'highlight_field', :highlight => true end end it "" do visit '/' fill_in 'q', :with => 'ipsum lorem' click_button 'search' page.should_not have_content 'Lorem ipsum' page.should have_content 'lorem et lorem' page.should_not have_content '<em>lorem</em>' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
blacklight_highlight-0.1.0 | spec/acceptance/blacklight_highlight_spec.rb |