Sha256: 07ede190b2501c89967a8ea64de2687b93c96240443a53830116a86451552c00

Contents?: true

Size: 1.06 KB

Versions: 2

Compression:

Stored size: 1.06 KB

Contents

require 'spec_helper'
require 'rspec/its'

describe DPLibrary::OriginalRecord do
  subject { DPLibrary::OriginalRecord.new( YAML.load_file( './spec/fixtures/original_record.yml' ) ) }

  context 'initialize' do
    its(:id) { should eql 'oai:biodiversitylibrary.org:item/79580' }
    its(:title) { should eql 'The chicken cholera preventive and exterminator, a treatise giving the cause, symptoms, prevention, and extermination of chicken cholera;' }
    its(:url) { should eql 'http://www.biodiversitylibrary.org/item/79580' }
    its(:description) { should eql 'Test' }
    its(:source) { should eql 'Library of Congress' }
    its(:date) { should eql '2012-06-22T02:33:26Z' }
    its(:label) { should eql 'The chicken cholera preventive and exterminator, a treatise giving the cause, symptoms, prevention, and extermination of chicken cholera;' }
    its(:language) { should eql 'English' }
    its(:type) { should eql ['text', 'Book'] }
    its(:creator) { should eql 'Hill, A. J.' }
    its(:publisher) { should eql 'Wooster [Ohio]Republican steam press print,1875.' }
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
DPLibrary-0.1.0 spec/DPLibrary/original_record_spec.rb
DPLibrary-0.0.6 spec/DPLibrary/original_record_spec.rb