Sha256: 97840641109d8d94ac5c27d0bfabb433b245f57969a5750a351c76eabe694847

Contents?: true

Size: 308 Bytes

Versions: 5

Compression:

Stored size: 308 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

describe 'catalog/opensearch.xml.builder' do
  it "should render an OpenSearch description document" do
    render
    doc = Nokogiri::XML.parse(rendered)
    doc.remove_namespaces!
    expect(doc.xpath('/OpenSearchDescription').length).to eq 1
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
blacklight-6.2.0 spec/views/catalog/opensearch.xml.builder_spec.rb
blacklight-6.1.0 spec/views/catalog/opensearch.xml.builder_spec.rb
blacklight-6.0.2 spec/views/catalog/opensearch.xml.builder_spec.rb
blacklight-6.0.1 spec/views/catalog/opensearch.xml.builder_spec.rb
blacklight-6.0.0 spec/views/catalog/opensearch.xml.builder_spec.rb