Sha256: 908b609cd3ec5d6e64e12bad107797eef83fef9d051f8b70230ff5f0a987d970
Contents?: true
Size: 1.18 KB
Versions: 2
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, FactoryGirl.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, FactoryGirl.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
enju_oai-0.2.0 | spec/views/oai/get_record.xml.builder |
enju_oai-0.2.0.beta.4 | spec/views/oai/get_record.xml.builder |