Sha256: 65cdbf44533caa08baae374a6d1524c20755c15152ccb1249889666e6dab9b50

Contents?: true

Size: 336 Bytes

Versions: 4

Compression:

Stored size: 336 Bytes

Contents

require 'spec_helper'

describe MARC::DataField do
  let(:marc_record) { MARC::XMLReader.read('spec/data/record-187888.xml').first }

  describe :subfield_codes do
    it 'returns the subfield codes in order' do
      expected_codes = %w[y 9 s u]

      expect(marc_record['856'].subfield_codes).to eq(expected_codes)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
berkeley_library-marc-0.3.1 spec/marc_extensions/data_field_spec.rb
berkeley_library-marc-0.3.0 spec/marc_extensions/data_field_spec.rb
berkeley_library-marc-0.2.1 spec/marc_extensions/data_field_spec.rb
berkeley_library-marc-0.2.0 spec/marc_extensions/data_field_spec.rb