Sha256: 2b22ff46a3b34a9752d1f2487615b92167ec03b00b316bb53d53f135cab7860b

Contents?: true

Size: 490 Bytes

Versions: 10

Compression:

Stored size: 490 Bytes

Contents

describe "SearchWorks Publication methods" do
  let(:smods_rec) { Stanford::Mods::Record.new }

  context '#imprint_display' do
    require 'fixtures/searchworks_imprint_data'
    SEARCHWORKS_IMPRINT_DATA.each_pair.each do |coll_name, coll_data|
      coll_data.each_pair do |mods_str, expected|
        it "#{expected} for rec in #{coll_name}" do
          smods_rec.from_str(mods_str)
          expect(smods_rec.imprint_display_str).to eq expected
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stanford-mods-3.3.9 spec/sw_publication_spec.rb
stanford-mods-3.3.8 spec/sw_publication_spec.rb
stanford-mods-3.3.7 spec/sw_publication_spec.rb
stanford-mods-3.3.6 spec/sw_publication_spec.rb
stanford-mods-3.3.5 spec/sw_publication_spec.rb
stanford-mods-3.3.4 spec/sw_publication_spec.rb
stanford-mods-3.3.3 spec/sw_publication_spec.rb
stanford-mods-3.3.2 spec/sw_publication_spec.rb
stanford-mods-3.3.1 spec/sw_publication_spec.rb
stanford-mods-3.3.0 spec/sw_publication_spec.rb