Sha256: df5d772e747a43729f405ae94a90ba49eef8f7ed4c24118388150b45a0485177
Contents?: true
Size: 1.18 KB
Versions: 3
Compression:
Stored size: 1.18 KB
Contents
# -*- encoding: utf-8 -*- require 'rails_helper' describe "oai/show.xml.builder" do describe "When metadataPrefix is 'oai_dc'" do before(:each) do assign(:manifestation, FactoryBot.create(:manifestation)) assign(:oai, metadataPrefix: 'oai_dc') end it "renders the XML template" do render rendered.should match /<metadata\b/ rendered.should match /<oai_dc:dc\b/ rendered.should match /<dc:title>manifestation_title/ end end describe "When metadataPrefix is 'junii2'" do before(:each) do assign(:manifestation, FactoryBot.create(:manifestation)) assign(:oai, metadataPrefix: 'junii2') end it "renders the XML template" do render rendered.should match /<metadata\b/ rendered.should match /<junii2\b/ rendered.should match /<title>manifestation_title/ end end describe "When metadataPrefix is 'dcndl'" do before(:each) do assign(:oai, metadataPrefix: 'dcndl') end it "renders the XML template" do render rendered.should match /<metadata\b/ rendered.should match /<dcndl\b/ rendered.should match /<dcterms:title>manifestation_title/ end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
enju_oai-0.3.1 | spec/views/oai/get_record.xml.builder |
enju_oai-0.3.0 | spec/views/oai/get_record.xml.builder |
enju_oai-0.3.0.beta.1 | spec/views/oai/get_record.xml.builder |