Sha256: 1a4563fe675ceaab2ac33881a4bbf9cfd10245bc7d9d08022d6f67a08d70fd3d
Contents?: true
Size: 862 Bytes
Versions: 1
Compression:
Stored size: 862 Bytes
Contents
require 'spec_helper' module BerkeleyLibrary module TIND module Mapping describe AlmaMultipleTIND do let(:additona_245_field) { [Util.datafield('245', [' ', ' '], [Util.subfield('a', 'fake 245 a')])] } let(:marc_obj) { (::MARC::Record.new).append(additona_245_field) } it ' get tind record' do allow_any_instance_of(BerkeleyLibrary::TIND::Mapping::AlmaMultipleTIND).to receive(:alma_record_from).with('991085821143406532').and_return(marc_obj) alma_multiple_tind = BerkeleyLibrary::TIND::Mapping::AlmaMultipleTIND.new('991085821143406532') allow(alma_multiple_tind).to receive(:base_tind_record).with('991085821143406532', additona_245_field, marc_obj).and_return(marc_obj) expect(alma_multiple_tind.record(additona_245_field)).to be marc_obj end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
berkeley_library-tind-0.6.0 | spec/berkeley_library/tind/mapping/alma_multiple_tind_spec.rb |