Sha256: 526e57415eb20adaf374e2e5e3c462d53eb817ce98f0445e277b9eadc74bf165

Contents?: true

Size: 298 Bytes

Versions: 34

Compression:

Stored size: 298 Bytes

Contents

require 'test/unit'
require 'marc'

class DublinCoreTest < Test::Unit::TestCase

    def test_mapping
        reader = MARC::Reader.new('test/batch.dat')
        reader.each do |record|
          dc = record.to_dublin_core
          assert dc['title'] == record['245']['a']
        end
    end

end

Version data entries

34 entries across 34 versions & 2 rubygems

Version Path
marc-1.1.1 test/tc_dublincore.rb
marc-1.1.0 test/tc_dublincore.rb
marc-1.0.4 test/tc_dublincore.rb
marc-1.0.3 test/tc_dublincore.rb
marc-1.0.2 test/tc_dublincore.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/marc-1.0.0/test/tc_dublincore.rb
marc-1.0.0 test/tc_dublincore.rb
marc-0.8.2 test/tc_dublincore.rb
marc-0.8.1 test/tc_dublincore.rb
marc-0.8.0 test/tc_dublincore.rb
marc-0.7.1 test/tc_dublincore.rb
marc-0.7.0 test/tc_dublincore.rb
marc-0.6.0 test/tc_dublincore.rb
marc-0.5.1 test/tc_dublincore.rb
marc-0.5.0 test/tc_dublincore.rb
marc-0.4.4 test/tc_dublincore.rb
marc-0.4.3 test/tc_dublincore.rb
marc-0.4.2 test/tc_dublincore.rb
marc-0.4.1 test/tc_dublincore.rb
marc-0.4.0 test/tc_dublincore.rb