Sha256: d3cf19cd59f52e0a347b99375ec63976b2a0cbd658f43c0eac23930dc51af087
Contents?: true
Size: 493 Bytes
Versions: 6
Compression:
Stored size: 493 Bytes
Contents
# Encoding: UTF-8 require 'test_helper' require 'traject/macros/marc21' include Traject::Macros::Marc21 describe "The extract_all_marc_values macro" do it "is fine with no arguments" do assert(extract_all_marc_values) end it "is fine with from/to strings" do assert(extract_all_marc_values(from: '100', to: '999')) end it "rejects from/to that aren't strings" do assert_raises(ArgumentError) do extract_all_marc_values(from: 100, to: '999') end end end
Version data entries
6 entries across 6 versions & 1 rubygems