Sha256: e9ba5bb6e59554973da01e477c39f193e78ceeeb165815ef50a9224841320321

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

require 'spec_helper'
require 'marc'

module BerkeleyLibrary
  module TIND
    module Mapping
      describe MatchTindField do

        let(:qualified_alma_obj) { Alma.new('spec/data/mapping/record.xml') }
        let(:qualified_alm_record) { qualified_alma_obj.record }

        let(:tind_marc) { TindMarc.new(qualified_alm_record) }

        let(:data_fields) { tind_marc.field_catalog.data_fields_880_group[:normal].concat tind_marc.field_catalog.data_fields_group[:normal] }
        let(:no_880_matching_count) { 5 }

        it 'get 880 un-matched fields' do
          expect(tind_marc.send(:un_matched_fields_880, data_fields, '991032577079706532').length).to eq no_880_matching_count
        end

      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

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