Sha256: 2502d967b5933e288284c7335220cfb9f24490c5b0fd2390da52b0262b479736

Contents?: true

Size: 720 Bytes

Versions: 21

Compression:

Stored size: 720 Bytes

Contents

require "rails_helper.rb"

describe "manifestations/index.rdf.builder" do
  before(:each) do
    manifestation = FactoryBot.create(:manifestation)
    @manifestations = assign(:manifestations, [manifestation] )
    @library_group = LibraryGroup.first
    view.stub(:filtered_params).and_return(ActionController::Parameters.new(per_page: 50).permit([:per_page]))
  end

  it "should export RDF format" do
    params[:format] = "rdf"
    render
    doc = Nokogiri::XML(rendered)
    nodes = doc.css('item')
    expect(nodes).not_to be_empty
    nodes.each do |node|
      rdf_ns = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"
      expect(node.attribute_with_ns("about", rdf_ns).value).not_to be_empty
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
enju_biblio-0.3.12 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.11 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.10 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.10.rc.3 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.10.rc.2 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.10.rc.1 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.9 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.4.0.rc.1 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.8 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.7 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.6 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.4.0.beta.2 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.4.0.beta.1 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.5 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.4 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.3 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.2 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.1 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.0 spec/views/manifestations/index.rdf.builder_spec.rb
enju_biblio-0.3.0.rc.1 spec/views/manifestations/index.rdf.builder_spec.rb