Sha256: be755ea12d7cd012a2546d0d150183bc1e184facddd2db5574ebb5ae48a5935b

Contents?: true

Size: 540 Bytes

Versions: 31

Compression:

Stored size: 540 Bytes

Contents

# frozen_string_literal: true

describe "Search Formats" do
  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

31 entries across 31 versions & 1 rubygems

Version Path
blacklight-6.25.0 spec/features/search_formats_spec.rb
blacklight-6.24.0 spec/features/search_formats_spec.rb
blacklight-6.23.0 spec/features/search_formats_spec.rb
blacklight-6.22.0 spec/features/search_formats_spec.rb
blacklight-6.21.0 spec/features/search_formats_spec.rb
blacklight-6.20.0 spec/features/search_formats_spec.rb
blacklight-6.19.2 spec/features/search_formats_spec.rb
blacklight-6.19.1 spec/features/search_formats_spec.rb
blacklight-6.19.0 spec/features/search_formats_spec.rb
blacklight-6.18.0 spec/features/search_formats_spec.rb
blacklight-6.17.0 spec/features/search_formats_spec.rb
blacklight-6.16.0 spec/features/search_formats_spec.rb
blacklight-6.15.0 spec/features/search_formats_spec.rb
blacklight-6.14.1 spec/features/search_formats_spec.rb
blacklight-6.14.0 spec/features/search_formats_spec.rb
blacklight-6.13.0 spec/features/search_formats_spec.rb
blacklight-6.12.0 spec/features/search_formats_spec.rb
blacklight-6.11.2 spec/features/search_formats_spec.rb
blacklight-6.11.1 spec/features/search_formats_spec.rb
blacklight-6.11.0 spec/features/search_formats_spec.rb