Sha256: e8e70d8f1ee29d7f0c18991add9a52a6a92ff9566504c112c926065b8420f327
Contents?: true
Size: 650 Bytes
Versions: 4
Compression:
Stored size: 650 Bytes
Contents
require 'spec_helper' require 'marc' module BerkeleyLibrary module TIND module Mapping describe CsvMultipleMapper do let(:dummy_class) { Class.new { extend CsvMultipleMapper } } let(:from_tag) { ['008', 'LDR'] } let(:rules_keys) { %i[tag_008 tag_LDR] } it 'get origin tags' do expect(dummy_class.from_tags).to eq from_tag end it 'get keys of rules' do expect(dummy_class.rules.keys).to eq rules_keys end it 'get 2 rules on tag "008" ' do expect(dummy_class.send(:rules_on_tag, '008').count).to eq 2 end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems