Sha256: c8de730827c615610a2cbedd48791cab882c5d08a74bc03f727168845b1b35bc
Contents?: true
Size: 680 Bytes
Versions: 3
Compression:
Stored size: 680 Bytes
Contents
require "rails_helper.rb" describe "manifestations/index.rdf.builder" do before(:each) do manifestation = FactoryGirl.create(:manifestation) @manifestations = assign(:manifestations, [ manifestation ] ) @library_group = LibraryGroup.first view.stub(:params).and_return(ActionController::Parameters.new) 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
3 entries across 3 versions & 1 rubygems