require 'spec_helper' module Exlibris module Aleph describe Metadata do let(:marc_xml) { %Q{ 00000nas 2200241 a 4500 001951476 NNU 20131122143305.0 910904c19919999nyuqr p 0 0eng d (CStRLIN)NYUG91-S1859 GLIS008967192 NYUb10896719 NNU NNU 09/04/91 CT Visionaire. [New York] : Visionaire Publishing, c1991- v. : ill. (some col.) ; 29 cm. Quarterly No. 1 (Spring 1991)- Title from cover. Fashion Periodicals. Art, Modern 20th century Periodicals. New School Gimbel Special Collections Periodicals 1306 Latest issues held in Periodicals; bound volumes held Offsite. New School Gimbel Offsite Special Collections Periodicals 1306 1- 1991- 09/04/91 c 9114 NNU 09/04/91 JJR MJD 910904 NYUG New School University Center Special Collections Periodicals 1306 Latest issues held in Periodicals; bound volumes held Offsite. New School University Center Special Collections Periodicals 1306 1- 1991- }} subject(:metadata) { Metadata.new(marc_xml) } describe '#marc_xml' do subject { metadata.marc_xml } it { should eq marc_xml.strip } end describe '#marc_record' do subject { metadata.marc_record } it { should be_a MARC::Record } end end end end