Sha256: da728d5972879a7a15102e546b276aece48fa22d8cc8a1412874756c7c08f6ee

Contents?: true

Size: 622 Bytes

Versions: 4

Compression:

Stored size: 622 Bytes

Contents

require 'spec_helper'

module BerkeleyLibrary
  module TIND
    module Mapping
      describe Alma do
        let(:alma_obj) { Alma.new('spec/data/mapping/record.xml') }

        it 'control field value' do
          expect(alma_obj.control_field.tag).to eq '008'
        end

        it 'control field value' do
          expect(alma_obj.control_field.tag).to eq '008'
        end

        it '880 field' do
          expect(alma_obj.field_880('245-01/$1')['6']).to eq '245-01/$1'
        end

        it 'regular field' do
          expect(alma_obj.field('245').tag).to eq '245'
        end

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
berkeley_library-tind-0.7.2 spec/berkeley_library/tind/mapping/alma_spec.rb
berkeley_library-tind-0.7.1 spec/berkeley_library/tind/mapping/alma_spec.rb
berkeley_library-tind-0.7.0 spec/berkeley_library/tind/mapping/alma_spec.rb
berkeley_library-tind-0.6.0 spec/berkeley_library/tind/mapping/alma_spec.rb