Sha256: 659d7a3db914ba940effc17aa2bcfa8c8acc42d3bab584dd19c2efb9c5171b89
Contents?: true
Size: 778 Bytes
Versions: 2
Compression:
Stored size: 778 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' describe "Search Formats" do before do # Get all the fields from Solr, so the #index documents have the MARC field (to trigger appropriate # export formats) CatalogController.blacklight_config.default_solr_params[:fl] = '*' end it "has an RSS XML response" do visit "/catalog.rss?q=" expect(page).to have_content "Blacklight Search Results" doc = Nokogiri::XML(page.body) expect(doc.xpath("//item")).to have(10).items end it "has an ATOM XML response" do visit "/catalog.atom?q=" expect(page).to have_content "Blacklight Search Results" doc = Nokogiri::XML(page.body) expect(doc.xpath("//atom:entry", atom: "http://www.w3.org/2005/Atom")).to have(10).entries end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
blacklight-6.3.1 | spec/features/search_formats_spec.rb |
blacklight-6.3.0 | spec/features/search_formats_spec.rb |