Sha256: 70af0226522e174b2ec3afcfb27d507ad709e8e635c6c268eb1237cc6a69253c
Contents?: true
Size: 919 Bytes
Versions: 2
Compression:
Stored size: 919 Bytes
Contents
require 'spec_helper' describe "Blacklight Range Limit" do before do CatalogController.blacklight_config = Blacklight::Configuration.new CatalogController.configure_blacklight do |config| config.add_facet_field 'pub_date_sort', :range => true config.default_solr_params[:'facet.field'] = config.facet_fields.keys end end it "should show the range limit facet" do visit '/catalog' page.should have_selector 'input.range_begin' page.should have_selector 'input.range_end' end it "should provide distribution information" do visit '/catalog' click_link 'View distribution' page.should have_content("1941 to 1944 1") page.should have_content("2005 to 2008 7") end it "should limit appropriately" do visit '/catalog' click_link 'View distribution' click_link '1941 to 1944' page.should have_content "1941 to 1944 [remove] 1" end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight_range_limit-5.0.1 | spec/features/blacklight_range_limit_spec.rb |
blacklight_range_limit-5.0.0 | spec/features/blacklight_range_limit_spec.rb |